Commit Graph

5713 Commits

Author SHA1 Message Date
Chris Loer
da5966b932 [test] Add native ignore for symbol-cross-fade test. 2018-07-23 13:33:27 -07:00
Chris Loer
0b2221cb74 [android, ios, macos] Generate symbol-placement: line-center wrappers 2018-07-23 13:33:27 -07:00
Asheem Mamoowala
7c585244ab Use Filter::serialize() in QMapboxGL::getFilter() 2018-07-23 09:12:26 -07:00
tobrun
bfe714eebe [android] - fix accesstoken validation 2018-07-23 14:31:18 +02:00
tobrun
bbc2529c50 [android] - replace deprecated javacompile with getJavaCompiler() 2018-07-23 13:56:50 +02:00
Fabian Guerra Soto
681e0141de [ios] Mapbox's Location Manager new API. (#12013)
* [ios] The new location manager API provides two new protocols MGLLocationManager and MGLLocationManagerDelegate to handle the location cycle and updates respectively. This enables developers to chose the appropriate location provider according to their needs, or transition between outdoors/indoors location updates.

It does provide a default implementation based on CLLocationManager.
2018-07-20 14:14:43 -07:00
John Firebaugh
fb736e8ef0 [ios, macos, android] Add changelog entries 2018-07-20 12:35:00 -07:00
John Firebaugh
5793283142 [android] Test token strings for icon-image and text-field 2018-07-20 12:35:00 -07:00
John Firebaugh
2c5d0e74a1 [ios, macos] Convert token strings to expressions on input
Removes mgl_expressionByReplacingTokensWithKeyPaths and associated code. Converting on output is no longer necessary: from the prior commit, core converts token strings to expressions at parse time; all that's necessary is to ensure that the runtime styling API does so as well.
2018-07-20 12:35:00 -07:00
John Firebaugh
af89318b1d [core] Convert token strings to expressions 2018-07-20 12:35:00 -07:00
John Firebaugh
c8edbb0500 [core] Replace {Source,Camera,Composite}Function with PropertyExpression 2018-07-20 11:56:30 -07:00
Tobrun
418bcc2f21 [android] - expose getMap on native_map_view 2018-07-20 10:31:22 +02:00
Jason Wray
5d7e3e24e5 [ios] Reorganize changelog for ios-v4.2.0 2018-07-18 11:35:22 -04:00
Jason Wray
5b221372f0 [ios] Update podspecs for ios-v4.2.0 2018-07-18 11:35:22 -04:00
Tobrun
91179afa49 [android] - update changelog for v6.3.0 final 2018-07-18 17:07:53 +02:00
Łukasz Paczos
c29740e73f [android] VisibleRegion instrumentation tests 2018-07-18 15:03:31 +02:00
Łukasz Paczos
6d24ef9a03 [android] option to request the visible region restricted by the content padding 2018-07-18 15:03:31 +02:00
Lloyd Sheng
782c58be00 Correct MGL_MATCH documentation (#12378) 2018-07-18 14:29:29 +08:00
Lloyd Sheng
284dd23ca4 [iOS] Fix unbalanced change delimiter crash (#12148)
Fixed a crash that occurred when the user started a gesture before the drift animation for a previous gesture was complete.
2018-07-18 14:29:06 +08:00
Thiago Marcos P. Santos
bffc60fefd [android] Fix possibly race on undefined behavior
`runnable->iter = runnables.end()` assumes that `::end()` is a
`static` or `constxpr` and thread-safe. This is likely to be true
for most of the implementations. That said we cannot rely on
undefined behavior and we should assume the worse case scenario.
2018-07-17 18:36:37 +02:00
Łukasz Paczos
7d686dfcba [android] bump SNAPSHOT version building on master to 6.4.0 2018-07-17 15:30:26 +02:00
Łukasz Paczos
a45dd30e44 [android] harden map events creation 2018-07-17 11:20:26 +02:00
tobrun
aeb85dbd8c [android] - bump used gradle tools version 2018-07-17 11:19:23 +02:00
Konstantin Käfer
561e55eb6c [core] make the offline DB schema a regular include file 2018-07-16 18:24:51 +02:00
Tobrun
6c9b627eaa [android] - bump kotlin, timber and okhttp to most recent stable versions 2018-07-16 15:37:52 +02:00
John Firebaugh
ca9ba9cb43 [build] Move all mason_use statements to a single file
So its checksum can be used in a CI cache key name.
2018-07-13 11:50:39 -07:00
tobrun
c6e43fa482 [android] - add geojson regression tests for java method look up from JNI 2018-07-13 11:04:18 +02:00
Konstantin Käfer
f3b5902f05 [node] prevent scheduled renderFinished() calls from running when render is canceled
Reverts d5aff71 (#11948) and implements an alternative solution.

Even with the previous fix applied, we were calling `renderFinished()` directly when the render was canceled. This led to the following scenario (all on the main thread):
- `Map::renderStill()` callback is called, `uv_async_send` schedules a call to `renderFinished()`.
- `NodeMap::cancel()` destroys the map object, and calls `renderFinished()` directly, which cleans up the request
- `NodeMap::startRender()` is called to schedule a _new_ render, which means that a new callback will be set
- The `uv_async_t` fires and calls `renderFinished` again:
   - We don't return early as intended by the fix in #11948 since a new callback/`req` object is now available.
   - Since neither error nor image has been set, we'll see a `Didn't get an image` error message.
   - We call the callback with the error. In scenario where we're reusing Map objects, we will start a new render, which will now trigger the `Map is currently rendering an image` error in `Map::renderStill`, and the map object enters a circle in which it will now fail repeatedly with this error.

This commit fixes the issue by completely removing the existing `uv_async_t` handle that could have a scheduled call, and replacing it with a fresh instance of an `uv_async_t` handle.
2018-07-13 10:28:26 +02:00
tobrun
e16c964465 [android] - add convenience method for destroyed state on MapView, can be used to determine if an asynchrous result should be set on map. 2018-07-12 10:46:57 +02:00
tobrun
b79b971f56 [android] - validate if gesture detector is able to handle gesture 2018-07-12 10:46:40 +02:00
Jason Wray
3ba1f3176e [ios] Update podspecs for ios-v4.2.0-beta.1 2018-07-11 12:01:16 -04:00
Randall Lee
673d75e6b3 [ios] Update events submodule to include RN override (#12360)
React native user agent override for internal use.
2018-07-10 16:34:59 -04:00
Minh Nguyễn
a93dca349d [macos] Import GeoJSON
Added an Import command to the File menu for adding the contents of a GeoJSON file to the map. simplestyle-spec formatting is applied to layers via a handful of expressions. Dropped pins include any details provided through simplestyle-spec properties.
2018-07-10 10:17:56 -07:00
Minh Nguyễn
192c611468 [ios] Deduplicated library dependency references 2018-07-10 09:28:03 -07:00
Minh Nguyễn
ec8ac3c64f [ios, macos] Allow unwrapped arguments in match expressions 2018-07-09 16:03:03 -07:00
Minh Nguyễn
f11ab91fc4 [ios, macos] Convert predicate options to collators 2018-07-09 16:02:40 -07:00
Bruno de Oliveira Abinader
d634973c8a [glfw] Use Map::moveBy in GLFWView::onMouseMove 2018-07-09 22:02:49 +03:00
Jason Wray
37e680c66b [ios, build] Strip symbols before recording size metrics 2018-07-09 12:31:43 -04:00
Łukasz Paczos
8817f05699 [android] - bumped telemetry to v3.1.4 2018-07-09 18:12:17 +02:00
Julian Rex
3710ef8810 [iOS] Update annotation view touch handling (with offsets) (#12234) 2018-07-09 10:01:11 -04:00
tobrun
e08ee7338a [android] - remove unique LatLng validation of LatLngBounds builder 2018-07-09 15:00:57 +02:00
tobrun
bf7792eae0 [android] - fix jni method lookup of GeometryCollection accessor geometries, add regression test 2018-07-09 12:51:34 +02:00
Minh Nguyễn
8b2135b249 [macos] Updated changelog 2018-07-06 17:01:08 -07:00
Jason Wray
19605cb4b4 [ios, macos] Remove duplicate MGLTileSourceOptionDEMEncoding declaration 2018-07-06 16:53:06 -04:00
Łukasz Paczos
282f89a9f3 [android] - added DraggableMarkerActivity 2018-07-06 13:22:08 +02:00
Łukasz Paczos
3bd24e655f [android] - added Kotlin dependencies to the test app 2018-07-06 13:22:08 +02:00
Jason Wray
ec472cb45a [ios] Update podspecs for ios-v4.2.0-alpha.2 2018-07-05 16:36:09 -04:00
Jason Wray
84c0e3f436 [ios] Update changelog for ios-v4.2.0-alpha.2 2018-07-05 16:36:07 -04:00
Chris Loer
310d844b5f [docs] Add changelog entries for #12294 2018-07-05 11:56:38 -07:00
Tobrun
aa07dc5461 [android] - update changelog for release v6.3.0-alpha.2 2018-07-05 19:53:04 +02:00