Commit Graph

6282 Commits

Author SHA1 Message Date
Alexander Shalamov
f076a1fe39 [core] Use util::readFile for Local and Asset file sources
Use exception free util::readFile instead of util::read_file for
LocalFileSource and AssetFileSource implementations.
2018-12-17 11:37:56 +02:00
Fabian Guerra Soto
fed201aaed [ios, macos] Fix number conversions when expressions cast to large numbers. (#13580)
* [ios, macos] Fix number conversions when expressions cast to large numbers.

* [ios, macos] Update changelogs.
2018-12-14 14:40:16 -08:00
Konstantin Käfer
1d8235f5b8 [build] rework platform/default directory and add -files.txt for vendored libs 2018-12-14 11:03:03 +01:00
Łukasz Paczos
c2a4a8822c [android] properly stop renderer when dismissing an example dialog 2018-12-14 10:26:43 +01:00
Łukasz Paczos
9064c8e4a1 [android] option to disable smooth animation of compass and accuracy values 2018-12-14 10:26:24 +01:00
Łukasz Paczos
e86d1b2ac9 [android] immediate location animation based on map's projection 2018-12-13 19:40:24 +01:00
Fabian Guerra Soto
bbeec8dacb [ios, macos] Add enablePlacementTransitions to MGLStyle. (#13565)
* [ios, macos] Add enablePlacementTransitions to MGLStyle.

* [ios, macos] Update changelogs.
2018-12-13 10:19:56 -08:00
tobrun
b1ae6c9051 [android] - move MapboxMapTest to java unit test 2018-12-13 19:08:43 +01:00
Tobrun
aedbdc21d0 [androd] - add weak references checks to all jni callbacks 2018-12-13 19:08:12 +01:00
Tobrun
e94a7fc405 [android] - validate if weakreference is still valid 2018-12-13 19:08:12 +01:00
Alexander Shalamov
b6b1067caf [ios, darwin] Make MGLFeature.attributes non-nullable and add integration test
Enforce non-nullable semantics for MGLFeature.attributes, to avoid construction of invalid mbgl::Feature properties
from nil NSDictionary object and align with public SDK property definition.

Integration test "testShapeSourceWithLineDistanceMetrics" is added to verify that MGLFeature is correctly converted.

Fixes issue #13378
2018-12-13 19:38:50 +02:00
Łukasz Paczos
1d410c94fc [android] register compass sensor listener only if provided data is consumed by the location layer or location camera 2018-12-13 17:44:54 +01:00
tobrun
3fbd9578c7 [android] - remove style load test from instrumented unit tests 2018-12-13 14:02:22 +01:00
Bharath MG
25286011e5 Fixed compass update time not getting updated 2018-12-13 10:30:44 +01:00
Julian Rex
e84748c170 [core] Updated iOS/macOS change logs. (#13564) 2018-12-12 19:37:51 -05:00
Fabian Guerra
98984ef292 [ios, macos] Fix MGLTransition struct creation. 2018-12-12 15:07:23 -08:00
Julian Rex
3e413de150 Update podspecs for v4.7.0-beta.2 (#13562) 2018-12-12 16:43:45 -05:00
Jordan Kiley
b3a244f7d8 [darwin] move turnstile event for snapshotter (#13549) 2018-12-12 10:58:08 -08:00
Łukasz Paczos
b1cf981beb [android] changelog for 7.0.0-beta.1 2018-12-12 16:45:29 +01:00
Osana Babayan
6aea5b561a [android] LatLng bounds cannot be wrapped (#13419) 2018-12-12 15:06:12 +01:00
Tobrun
bd7c73f8e4 [android] - set snapshot version to 7.1.0 2018-12-12 12:49:25 +01:00
Łukasz Paczos
d592889e86 [android] CameraMode transition animation and result listeners 2018-12-12 12:31:40 +01:00
Kevin Li
2d527c2af7 [Android] Add setPreferredFramesPerSecond for MapView (#13498)
* [Android] Add setPreferredFramesPerSecond for MapView
2018-12-12 09:15:55 +08:00
Chris Loer
662a495561 [docs] EnterIdle -> BecomeIdle 2018-12-11 11:46:16 -08:00
Chris Loer
70c2d5a4ca [core, darwin, android] Add onDidEnterIdle to MapObserver.
didEnterIdle fires whenever render completes and no repaint is scheduled.
2018-12-11 11:46:16 -08:00
Mikhail Pozdnyakov
13e117b501 [android] Enable core-only layers
`LayerManagerAndroid` can add layer types that are enabled only for JSON style.
It allows to save binary size - JNI glue code for these layer types won't be
added to the binaries.
2018-12-11 20:11:23 +02:00
Tobrun
75914acb6b [android] - add more tests, refactor map padding 2018-12-11 18:08:16 +01:00
Tobrun
5a4a7e7ea8 [android] - instrumented unit tests, add map tests, refactor generated layer tests 2018-12-11 18:08:16 +01:00
Mikhail Pozdnyakov
ebd87a5442 [core, android, darwin] Move layer factories to separate files 2018-12-10 18:20:32 +02:00
tobrun
cbcd0875e3 [android] - remove style config from mapboxMapOptions and attributes 2018-12-10 16:59:50 +01:00
tobrun
16aa48151c [android] - introduce validateState, add illegal state exception to all invocations, add test 2018-12-10 16:59:50 +01:00
tobrun
a018c0f7b5 [android] - throw exception when another style is loading, correct RuntimeStyleTest when removing layer at, add javadoc to isFullyLoaded 2018-12-10 16:59:50 +01:00
Tobrun
aa9e6c59bb [android] - optimise loaded style for location component, expose isFullyLoaded 2018-12-10 16:59:50 +01:00
Tobrun
8eaff9ce13 [android] - make style part of location component activation, add tests for non existing style and multiple style loading, revisit code comments 2018-12-10 16:59:50 +01:00
Tobrun
648f34aadc [android] - update unit test to match NativeMapView#isDestroyed 2018-12-10 16:59:50 +01:00
Tobrun
5a1a34e860 [android] - update sanity test to Style.java 2018-12-10 16:59:50 +01:00
Tobrun
222a997584 [android] - add unit tests for Style.java API 2018-12-10 16:59:50 +01:00
Tobrun
4a769077af [android] - add missing javadoc on public API methods around Style 2018-12-10 16:59:50 +01:00
Łukasz Paczos
8e067868e7 [android] fix LocationComponent unit test with Style.java object 2018-12-10 16:59:50 +01:00
Tobrun
70e10ba133 [android] - un-ignore location tests 2018-12-10 16:59:50 +01:00
Tobrun
981689477b [android] - use builder json/url for constructing style object 2018-12-10 16:59:50 +01:00
Łukasz Paczos
f8f8e0b749 [android] move style callback invocation to MapboxMap 2018-12-10 16:59:50 +01:00
Tobrun
acbe2475f9 [android] - cleanup images 2018-12-10 16:59:50 +01:00
Tobrun
3ffb62b419 [android] - introduce StyleCallback, make parent class for StateCallback 2018-12-10 16:59:50 +01:00
Tobrun
075443e18b [android] - limit visibility, clear callbacks 2018-12-10 16:59:50 +01:00
Tobrun
2efdf938a8 [android] - infer nullify on Style.java 2018-12-10 16:59:50 +01:00
Tobrun
476aba6717 [android] - update CircleLayer to be compatible 2018-12-10 16:59:50 +01:00
Tobrun
63bf14ebe1 [android] - fixup location component test to use initialize components 2018-12-10 16:59:50 +01:00
Tobrun
879b461884 [android] - ignore location component unit test, update light test, update activity integration 2018-12-10 16:59:50 +01:00
Tobrun
ecfd17a2ad [android] - add class level javadoc to Style.java 2018-12-10 16:59:50 +01:00