Mikhail Pozdnyakov
8af78ddbb9
[core] Update MapObserver::onDidFinishRenderingFrame() API
2019-09-12 00:40:08 +03:00
Łukasz Paczos
becc705f05
[android] expose camera padding option
...
This removes the cached insets on the Android side, making the core TransformState the source of truth. This still leaves an option to lazily set the padding which is going to be applied only when the next camera animation is started.
2019-08-29 14:51:24 +02:00
Mikhail Pozdnyakov
ef3d04dee5
[core] Export symbol placement update status from MapObserver
2019-08-23 10:56:05 +03:00
Łukasz Paczos
baa7086570
Merge pull request #15437 from mapbox/lp-revert-14989
...
Revert "[android] invalidate camera when setting a padding"
2019-08-21 17:24:11 +02:00
Łukasz Paczos
8fbe63b51b
[android] invalidate camera when setting a padding
2019-06-25 13:29:20 +02:00
tobrun
df062afe6d
[android] - fix reset behavior for setLatLngBoundsForCameraTarget
2019-06-11 10:10:51 +02:00
Alexander Shalamov
80dd90bd66
[android] Add bindings for onRemoveUnusedStyleImages API
2019-05-21 06:49:17 -07:00
Thiago Marcos P. Santos
06f1dc48a2
[core] Make the BackgroundScheduler a singleton
...
- Do not carry it over everywhere as parameter, it is a shared
instance anyway and the lifecycle is pretty much the app lifecycle
from the moment we instantiate a map.
- Rename to BackgroundScheduler because it is a Scheduler that will
do tasks in the background, we don't make assumptions if it is a
thread pool or a single thread.
- Most importantly, remove the dependency from `core` on `platform`.
2019-05-10 14:20:38 +03:00
tobrun
0ac95bd994
[android] - add style image missing binding integration, add synchronous
...
image overloads to style
2019-04-15 14:24:02 +02:00
Sudarsana Babu Nagineni
7af00a404f
[core] Include pixelRatio property in MapOptions
...
Move pixelRatio property from Map constructor to MapOptions.
2019-03-28 16:41:15 +02:00
Sudarsana Babu Nagineni
1cc1d4ea08
[core] Add setter/getter for size property in MapOptions
2019-03-28 16:41:15 +02:00
Bruno de Oliveira Abinader
d5868d3da8
[core] Remove file source from public Map ctor
2019-03-20 21:30:08 +02:00
Ander Conselvan de Oliveira
5733440747
[core] Group Map LatLngBounds, min and max zoom methods
...
Group bounds, minimum and maximum zoom related methods together using
the new BoundOptions.
v2: Document that getBounds() initializes all optional fields.
- Add test for getBounds() on a map with default values.
2019-03-14 18:33:11 +02:00
Ander Conselvan de Oliveira
7d19115720
[core] Don't use exceptions in MapObserver::onDidFailLoadingMap
...
Using different exception pointers to specify the loading failure makes
an awkward API. Most users rethrow the exception only to figure out what
type of error happened so it can be reported properly. So replace the
exception pointer with a enum an string description of the failure.
2019-03-13 11:58:27 +02:00
Sudarsana Babu Nagineni
5e2b6bf636
[core] Add MapOptions to define properties of Map
...
To simplify the Map constructor, introduce MapOptions
interface to define the properties that can be set on
a Map.
2019-03-08 18:20:55 +02:00
Bruno de Oliveira Abinader
586b22c0df
[core] Remove map coordinate setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
ba7427b4ac
[core] Transform{State}: s/angle/bearing/
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
73ac3c784f
[core] Remove map bearing setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
21a39306da
[core] Remove map pitch setters/getters
2019-03-04 14:45:32 +02:00
Bruno de Oliveira Abinader
f5f10ec119
[core] Remove map zoom setters/getters
2019-03-04 14:45:32 +02:00
Łukasz Paczos
8ad13cd577
[android] expose symbol placement transition duration option
2019-02-04 14:52:14 +01:00
Łukasz Paczos
9604953d90
[android] rename required TransitionOptions field
2019-01-21 18:02:18 +01:00
tobrun
e6e07a6809
[android] - optimise interface definition
2019-01-15 13:33:28 +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
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
Tobrun
75914acb6b
[android] - add more tests, refactor map padding
2018-12-11 18:08:16 +01:00
Osana Babayan
ea775ae932
nativeRemoveSource() and nativeRemoveLayer() methods should return a boolean ( #13428 )
2018-12-07 13:10:28 -05:00
Mikhail Pozdnyakov
80ec05cf47
[core][android] Implement LayerManager for Android
...
The newly introduced `LayerManagerAndroid` is now responsible
for creating both style layer objects and their java peers on Android.
2018-11-07 16:34:20 +02:00
Bruno de Oliveira Abinader
98c36fc06e
[core] CameraOptions receives and outputs angle and pitch as degrees, not radians
2018-10-19 12:05:16 +02:00
Tobrun
9e7694cb38
[android] - replace OnMapChange with specific callbacks
2018-10-11 14:12:35 +02:00
tobrun
5238c77696
[android] - add binding integration for cross source collision
2018-09-12 14:10:46 -07:00
John Firebaugh
79bf0e8af6
[android] jni.hpp 4.0.0
2018-09-07 09:44:12 -07:00
John Firebaugh
115e8625e1
[android] Simplify Feature conversion
2018-09-07 09:44:12 -07:00
John Firebaugh
53c3c327f0
[android] Upgrade to latest jni.hpp
2018-09-07 09:44:12 -07:00
Konstantin Käfer
112bbc7ab2
[core] make style/conversion.hpp implementation private
2018-08-19 13:09:16 +02:00
Łukasz Paczos
63d4ac05f2
[android] shutting down thread pool of the CustomGeometrySource when the source is destroyed
2018-08-10 18:31:52 +02:00
Tobrun
418bcc2f21
[android] - expose getMap on native_map_view
2018-07-20 10:31:22 +02:00
tobrun
ec78936e18
[android] - add bearing and pitch to get camera for geometry
2018-07-05 13:30:50 +02:00
tobrun
add9eecd99
[android] - add bearing and tilt to LatLngBounds, incorporate current tilt and bearing transformation in old api
2018-07-05 13:30:50 +02:00
tobrun
279dd93f7c
[android] - add support for sdf by exposing sdf confiigurationn when calling MapboxMap#addImage.
2018-06-25 13:44:15 +02:00
Łukasz Paczos
dfdfbc0990
[android] calculating camera's LatLng for bounds without map padding ( #11410 )
2018-03-08 15:55:47 +01:00
Fabian Guerra
903e7989ec
Merge branch 'master' into release-boba
...
# Conflicts:
# platform/android/CHANGELOG.md
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/Mapbox.java
# platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/widgets/CompassView.java
# platform/android/scripts/exclude-activity-gen.json
# platform/ios/CHANGELOG.md
# platform/ios/Mapbox-iOS-SDK-nightly-dynamic.podspec
# platform/ios/Mapbox-iOS-SDK-symbols.podspec
# platform/ios/Mapbox-iOS-SDK.podspec
# platform/macos/CHANGELOG.md
2018-02-15 11:54:51 -05:00
Chris Loer
a11b277bc1
[core] Rename "onLowMemory" to "reduceMemoryUse".
...
Android still calls "reduceMemoryUse" only while handling a low memory event.
iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
2018-02-14 10:55:16 -08:00
Benjamin Jaeger
0b27909b8b
NativeMapView.addImage without copying into Java
2018-02-12 15:56:58 +01:00
Asheem Mamoowala
f06ebcc967
[android] Reuse Java Source objects by holding on to a strong reference in the C++ peer.
2017-11-22 13:56:38 -08:00
Tobrun
f578b26282
[android] - add bulk addImages api on MapboxMap
2017-10-31 13:47:12 -07:00
Tobrun
5893af7f24
[android] - move shape annotation click handling to core
2017-10-30 09:34:23 -07:00
Asheem Mamoowala
24bd336b88
[android][ios][macOS] Implement bindings for Map::cameraForGeometry. On macOS, also added -[MGLMapView setCamera: withDuration: animationTimingFunction: edgePadding: completionHandler:] for parity with iOS
2017-10-09 13:58:11 -07:00