Commit Graph

14444 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
fa96612888 [Qt] Fix viewport size for Linux on Qt5 2016-10-28 14:36:07 +03:00
John Firebaugh
057b7b75ce [core] Band-aid for crash triggered by unbound element buffer (#6844) 2016-10-27 18:31:00 -07:00
Konstantin Käfer
62b56b799a [core] change std::array<uint16_t, 2> to mbgl::Size 2016-10-27 18:30:58 -07:00
Jesse Bounds
95ae833244 [ios] Add simulator dSYM slices to build output. (#5740)
Our release builds for device (with lipoed simulator binary) create
a dSYM files for both the device and simulator. However the script
only copied the device dSYM file to the output location.

This adds a step to lipo together both the device and simulator dSYM files.
Mapbox.framework.dSYM now holds armv7 and arm64 slices.
2016-10-27 18:30:51 -07:00
Konstantin Käfer
ef8017198c [core] remove tiles for disabled sources
When no layer of a source is visible anymore, we are now evicting tiles that are still stored in that source and move them to the cache.
2016-10-27 18:14:53 -07:00
Konstantin Käfer
91272992f3 [core] don't load tiles from sources that aren't used 2016-10-27 16:15:36 -07:00
Jesse Bounds
d5af9b680b [ios, macos] Introduce visible annotations API (#6061)
Add visibleAnnotations API to make it easier for clients of MGLMapView
to query for all visible annotations in the map or all visible annotations
in a subsection of the map.
2016-10-26 17:13:38 -07:00
Jesse Bounds
67ffc9685e [ios, macos] Make source ownership consistent and GeoJSON content properties writable
Use common initialization logic to create an unique pointer to an mbgl
source object, up front, when a MGL source is created. Keep a raw
pointer to the unique pointer that is pointed at the mbgl source
instance when a MGL source is created or when a MGL source is
obtained by identifier from MGLStyle. Once the transfer of ownership of the 
mbgl source takes place, the unique ptr is null. The raw pointer can be used 
internally for future work that involves mutating the source.

This also changes the URL, features, and geoJSONData content 
properties for MGLGeoJSON source to be writable. If they are set with
valid data after a source has been added to the map then the map will
update to reflect the new data.
2016-10-26 17:08:27 -07:00
Minh Nguyễn
12093c10ad [ios, macos] Added Swift MGLStyleValue tests
Added tests of MGLStyleValue written in Swift, along with bridging headers just in case they become needed in the future.
2016-10-26 15:16:15 -07:00
Minh Nguyễn
62647a013f [ios, macos] Corrected MGLStyleValue inheritance
MGLStyleConstantValue and MGLStyleFunction now inherit from MGLStyleValue with a generic argument matching the child class’s own generic argument.

Fixes #6823.
2016-10-26 15:16:15 -07:00
Tobrun
e7bfa7849e [android] - Update to Android Studio 2.2.2 with tools/dependencies (#6390)
* [android] - update android gradle tools, update test app version number, update target sdk to nougat, update support lib versions to latest

* new tools generated an aligned test apk, breaks CI integration

* update to Nougat release 7.1, update related tooling, update version code test app to 5.0.0.

* update wear module

* update gradle.properties
2016-10-26 16:09:51 +02:00
Minh Nguyễn
dc884cd6c3 [ios, macos] Fixed syntax error in documentation comment (#6822)
Fixes #6821.
2016-10-26 00:36:23 -07:00
Jesse Bounds
0a1d9849fa [ios] Guard against nil data task (#5932) 2016-10-25 22:42:06 -07:00
Jesse Bounds
392450786d [ios] Observer that app did become active instead of will foreground (#6600) 2016-10-25 22:40:21 -07:00
Jesse Bounds
32be7b6cc3 [ios] Optimize event uploading (#6737)
Upload any events collected when the app was in use for apps that only
have "when in use" location permissions. Also, for all apps, avoid
posting event data if there is only a single event.
2016-10-25 22:39:26 -07:00
Jason Wray
36738c0025 [ios] Don't specify Swift version for jazzy doc generation (#6377) 2016-10-25 22:38:17 -07:00
Jason Wray
47f73d3f64 [ios][build] Validate dSYM and framework UUIDs 2016-10-25 22:35:01 -07:00
Jason Wray
5cacbb4505 [ios][build] Generate debug symbols for all builds
Fixes the issue where our stripped dynamic build did not have a valid dSYM.

Disabling GCC_GENERATE_DEBUGGING_SYMBOLS for SYMBOLS=NO builds meant
that those builds had no debug symbols to strip or add to a dSYM.
2016-10-25 22:34:50 -07:00
Jesse Bounds
dbfa8dcc89 Merge branch 'master' into boundsj-release-ios-3.4.0-merge-master 2016-10-25 15:48:29 -07:00
Konstantin Käfer
a4d259c33f [core] move gl::Context to Backend and refactor View 2016-10-25 13:52:36 -07:00
Konstantin Käfer
5cc390d694 [core] separate Backend from View for headless rendering 2016-10-25 13:52:36 -07:00
Cameron Mace
45f4dc0166 removed brew cask install android studio instruction (#6723)
* removed brew cask install android studio instruction

* link to download JDK

* made fixes to instruction
2016-10-25 16:44:03 -04:00
Tobrun
3457eb1144 [android] - MarkerView is responsible for managing height and width of a Marker (opposed to the recycled view). (#6809) 2016-10-25 17:36:26 +02:00
Ivo van Dongen
b14e83ea40 [core] geojson source - cancel any pending request when setting geojson explicitly 2016-10-25 16:11:36 +02:00
Ivo van Dongen
6277dca898 [core] geojson source - clear cache when json content is set 2016-10-25 16:11:36 +02:00
Tobrun
b0485bccd9 [android] - remove timer from compassView, make fading when facing north optional. (#6786)
save state for recreating map view

fix review comments

unit test covering default value for fading and setting a new value

fixup setter, fix default value
2016-10-25 15:53:16 +02:00
Tobrun
94b1a53f06 [android] - move marker view click handling to core (#5639) 2016-10-25 15:11:49 +02:00
Ivo van Dongen
068e78a2e7 [core] geojson source - reset req on setURL 2016-10-25 12:47:35 +02:00
Ivo van Dongen
31a7925205 [android] fix exception class 2016-10-25 12:41:28 +02:00
Bruno de Oliveira Abinader
fb9fbef6dd [test] Update mapbox-gl-test-suite hash
Now testing 'query-tests/symbol-features-in/pitched-screen'.
2016-10-25 08:12:31 +03:00
Bruno de Oliveira Abinader
72df1658fa [glfw] Added queryPointAnnotations shortcut 2016-10-25 08:12:31 +03:00
Bruno de Oliveira Abinader
e55065e62a [core] Reuse last placement data in CollisionTile::queryRenderedFeatures
To obtain precise results, we:
1. Round scale value to obtain same results from symbol shader.
2. Generate a boost geometry polygon to check if it intersects()
   against all feature boxes.
3. Check if current scale is within each feature's minimum and maximum
   placement scales.
4. De-scale feature boxes when intersecting to account for the
   fractional zoom scaling.
2016-10-25 08:12:31 +03:00
Bruno de Oliveira Abinader
fc6344c546 [core] Added util::polygonIntersectsPolygon 2016-10-25 08:12:31 +03:00
Bruno de Oliveira Abinader
679bfbfb32 [core] Simplify CollisionTile::findPlacementScale
Improve findPlacementScale semantics by moving the check if the
placement scale result is bigger than minimum scale out of the function
scope.
2016-10-25 08:12:31 +03:00
Bruno de Oliveira Abinader
846e57de58 [core] Avoid duplicating edges for CollisionTile
Make 'edges' static to avoid every instance of CollisionTile having its
own copy of it.
2016-10-25 08:12:31 +03:00
Bruno de Oliveira Abinader
8743f11345 [core] Cleanup function signatures in CollisionTile
- Prefer pass-by-value for primitive types.
- Use floating point precision for yStretch to match receiving type.
2016-10-25 08:12:31 +03:00
Tobrun
ed1ceecc09 [android] - only pin certificates on current used environement. (#6766)
update certificates sha256 for certificate pinning.
2016-10-24 22:38:10 +02:00
Bruno de Oliveira Abinader
89ba2f2151 [build] Set C++14 as default standard for CMake 2016-10-24 21:38:12 +03:00
Bruno de Oliveira Abinader
cff5360280 [qt] Fix macOS Qt demo app with Qt4.x 2016-10-24 21:38:12 +03:00
Tobrun
bc4cf3220c [android] - cap width/height at maximum, don't throw exception. (#6788) 2016-10-24 10:34:40 +02:00
Mike Morris
eb1b385e50 [node] publish Bitrise tag builds 2016-10-22 00:35:26 -04:00
Tobrun
8633c34d01 Android Bitrise cleanup (#6782)
* [android] - update bitrise.yml, always use latest deploy step

cleanup bitrise.yml

formatting, separate download step -> if tests fail, build fails

improve shown console messages, correct package for firebase filter

update steps

add slack integration for all workflows

* fixup SKIPCI check
2016-10-21 22:24:52 +02:00
Tobrun
7a4cd67aa8 [android] - remove jni method logging, only keep lifecycle related logs (#6787) 2016-10-21 22:23:16 +02:00
Ivo van Dongen
e31a2c1c11 [core] fixup formatting 2016-10-21 10:05:00 -07:00
Cameron Mace
da9864f25d Made telemetry dialog material (#6726)
* Made telemetry dialog material

* cleaned up attribution_main_menu
2016-10-21 10:29:12 -04:00
Jesse Bounds
1216050f9c Add MGLPointCollection for GeoJSON multipoints (#6742)
* [ios, macos] Introduce MGLPointCollection

This makes MGLMultiPoint abstract again so that it is only a place 
for shared functionality of polygons and polylines. The multipoint 
feature replaces the point collection feature and can be
used to initialize a MGLGeoJSONSource. The previously added 
swift_names for polyline and polygon are removed, for now.

This also updates the iOS and macOS annotation adding logic so that
unwanted shapes really are avoided. Previously the combined OR
conditions  meant that an annotation had to logically be NOT a kind
of all three types so the check always let the annotation slip through.
This also expands the guard to deflect the new MGLPointCollection.
2016-10-20 17:14:19 -07:00
Mike Morris
7bbd49c72c [core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive 2016-10-20 14:39:11 -04:00
Mike Morris
a894870fb8 [node] remove internal NodeRequest class from public API 2016-10-20 14:38:36 -04:00
Mike Morris
817c26111a [core] [node] pass thread pool impl to Map constructor
Updates mbgl::Map constructor usage everywhere

Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Ivo van Dongen
ab85fdb452 [glfw] add map change callback methods to glfw_view 2016-10-20 17:02:40 +03:00