Langston Smith
9bfe77df40
Adding pulsing circle to LocationComponent options ( #172 )
...
* [location] added pulsing locationcomponent circle
* adjusting style switching to roll through all styles
* refactored methods and variables for prefix continuity
* refactoring to after making start and stop private methods
* refactoring to stop pulsing when LocationComponent is disabled and color/speed is then selected
* refactoring to swap interpolator string paramete for interpolator interface parameter
* LocationLayerControllerTest adjustments
* removing unneeded test
* more rebase adjustments
* [location] added pulsing locationcomponent circle
* refactoring to swap interpolator string paramete for interpolator interface parameter
* consolidating pulse ui update methods
* gl-native vendor bump
* refactor to check for activation with locationcomponent
* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java
Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com >
* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponent.java
Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com >
* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java
Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com >
* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java
Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com >
* Update MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentOptions.java
Co-Authored-By: Łukasz Paczos <lukasz.paczos@mapbox.com >
* Added incompatibility docs
* Added pulse alpha range explanation
* Do not wrap pulsing circle animator with an animator set to avoid leaks
Co-authored-by: Łukasz Paczos <lukasz.paczos@mapbox.com >
2020-04-30 12:28:36 +02:00
Kevin Li
6fd498ed16
Add set and get api for volatile and minimumTileUpdateInterval in Source ( #355 )
...
* Add set and get api for Volatile and minimumTileUpdateInterval in Source
* Format codes.
2020-04-29 20:49:35 +08:00
Kevin Li
859f64f97e
Remove unit param for expression distance. ( #352 )
2020-04-29 15:57:25 +08:00
Kevin Li
c77a49c15c
Make onSnapshotFailed run on main thread. ( #347 )
2020-04-28 17:48:26 +08:00
Kevin Li
5cee66a451
Add api and demo for expression distance ( #339 )
...
* Add api and demo for expression distance
* Update test case
2020-04-24 16:55:02 +08:00
Łukasz Paczos
161abf8326
clean up compass engine comments and duplication
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
6f6f146d69
Prevent bearing flipping in the cases of upside down and face down.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
d230172b3c
Fix code style and unit test issues for the compass fix.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
e3b2452ba2
Update the heading, even if the sensor is unreliable.
...
This makes it possible to use a different indicator for the unreliable case, instead of just changing the RenderMode to NORMAL.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
7bcc2d3282
Calculate the heading differently, depending on whether the device is placed horizontally or vertically.
...
The previous logic may return wrong heading when the device is placed horizontally.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
928632ad43
Prevent dropping the TYPE_ACCELEROMETER and TYPE_MAGNETIC_FIELD sensor events, otherwise, only one sensor value is updated in each heading update.
...
Especially, there may be more TYPE_ACCELEROMETER events in some devices, such that TYPE_MAGNETIC_FIELD events could be dropped easily.
Also, it took longer time to reflect the latest heading if there are few events, due to the lowPassFilter.
2020-04-23 13:30:34 +02:00
Tsoi Yat Shing
7367a49de0
Remove the use of the deprecated TYPE_ORIENTATION sensor.
...
The compass engine has not adjusted the heading according to the device orientation. This causes wrong heading if the device is not in its normal orientation.
2020-04-23 13:30:34 +02:00
Łukasz Paczos
bb1132a4d3
make sure to hard-cancel all ignored location animators
2020-04-21 14:36:13 +02:00
Łukasz Paczos
6f73982d95
disable LocationIndicatorLayer's location transitions
2020-04-21 14:36:13 +02:00
Łukasz Paczos
7364dd0282
LocationIndicatorLayer tests
2020-04-21 14:36:13 +02:00
Łukasz Paczos
dbaad6312b
hide the LocationIndicatorLayer impl
2020-04-21 14:36:13 +02:00
Łukasz Paczos
6bb456882a
expose LocationIndicatorLayer and an alternative rendering mode based on it
2020-04-21 14:36:13 +02:00
Alexander Shalamov
d7161fca1f
Add bindings for max overscale factor for parent tiles ( #299 )
2020-04-20 11:16:59 +03:00
Thiago Marcos P. Santos
69b7b10776
Bump Mapbox GL Native
...
mapbox-gl-native @ c4b061bd95
2020-04-17 18:36:19 +03:00
Kevin Li
1cb8fb7a01
Add interface for stretchable image ( #314 )
...
* Add interface for stretch image
* Add demo for stretch image api
* Add stretchable image demp
* Update stretchable image test activity.
* Revert change for SymbolLayerActivity
This reverts commit 22bbb798
2020-04-16 14:31:38 +08:00
Chloe Krawczyk
77d0d5e5cf
Add bindings for circle-sort-key ( #322 )
...
* Update generate-style-code.js
* add jni bindings for circle-sort-key
* update mapbox-gl-native to latest
* Revert "add jni bindings for circle-sort-key"
This reverts commit cdd6049d
Co-authored-by: kevin <kevin.li@mapbox.com >
2020-04-15 17:56:54 +08:00
Kevin Li
7ca1bcf821
Fix onStyleImageMissing not fired in Snapshotter ( #317 )
...
* Modify example to trigger OnStyleMissing callback
* Fix onStyleImageMissing callback not works in snapshotter.
* Update gl-native
* Update doc
* Fix android check
2020-04-14 17:58:23 +08:00
Kevin Li
414e155af3
Not rebuild all files ( #318 )
2020-04-10 21:31:32 +08:00
Kevin Li
cedd2afecc
Add log for canceled request. ( #304 )
2020-04-03 16:32:51 +08:00
Igor Tarasov
daecbed823
Move JNI bindings code from mapbox-gl-native to this repo. ( #301 )
2020-04-02 19:45:56 +03:00
Pablo Guardiola
620bda356c
fix proguard telemetry events rule ( #306 )
2020-04-02 09:33:55 -04:00
Kevin Li
dceba08311
Fix Expression can't convert within json error ( #305 )
2020-04-01 18:09:15 +08:00
Kevin Li
dbdc053db1
Update ccache config ( #298 )
2020-03-30 21:29:03 +08:00
Tobrun
4b0cd4025f
[glyph] rework local glyph generation to use RGB values vs alpha ( #289 )
2020-03-25 14:58:59 +01:00
Alexander Shalamov
6984dbf155
Add getLayer and getSource snapshotter methods ( #292 )
...
* Expose snapshotter layer and source objects
* Add example snapshotter + within activity
* Bump vendor/mapbox-gl-native
2020-03-25 13:42:23 +02:00
Kevin Li
da6d8a2b06
Add runtime styling APIs on MapSnapshotter ( #268 )
...
* Add styleable snapshotter.
* Add style API for snapshotter
* Add observer interface to snapshotter
* WIP Add styling to snapshotter activity
* Update interface and implement addlayer functions.
* Deprecate methods instead of removing
* Implement addSource functions.
* Implement addImage function
* Still use the previous callback interface.
* Expose onStyleDidloaded interface
* Add setStyle method
* Start native snapshotter from start method
* Fix snapshotter test.
* Fix check style
* Keep the original interface
* Update gl-native
* Add demo for snapshotter heatmap layer
* bump gl-native
Co-authored-by: Alexander Shalamov <alexander.shalamov@mapbox.com >
2020-03-25 09:59:38 +08:00
Tobrun
d8c919f1dd
[mapview] expose queuEvent to schedule runnable to execut on thread of MapRenderer ( #284 )
2020-03-23 07:51:37 +01:00
Tobrun
14eb8f038a
[textureview] validate TextureView surface texture when creating egl window surface ( #278 )
2020-03-17 10:12:38 +01:00
Kevin Li
ea7bc213a2
Enable ccache for android studio. ( #269 )
2020-03-09 22:00:06 +08:00
Kevin Li
04722fdefd
Update generate-style-code and add sort key api for LineLayer and FillLayer. ( #209 )
2020-03-06 16:59:32 +08:00
Kevin Li
b976545181
Add expression within ( #198 )
...
* Add expression within
* Update expression within and runtime demo
* Update Runtime demo
* Fix android check
2020-03-04 18:18:53 +08:00
Kevin Li
17b19b3b4a
Add min and max pitch options ( #199 )
...
* Add min and max pitch options
* Add min and max pitch into attrs
* Update gl-native submodule
2020-02-28 18:17:08 +08:00
Kevin Li
81189a98bc
Add telemetry events classes to proguard ( #195 )
2020-02-28 10:05:51 +08:00
Kevin Li
2e9f02140c
Add runtime API for setting tile prefetch delta for Source class ( #184 )
...
* Add runtime API for setting tile prefetch delta for Source class
* Use Integer as param.
* Update gl native submodule.
2020-02-25 09:24:04 +08:00
Kevin Li
18264df98d
Add expression in. ( #171 )
...
* Add expression in.
* Add test for expression in.
2020-02-19 08:52:39 +08:00
Peng Liu
a8ebcb890c
Revert "[sku] append sku token to offline download requests" ( #173 )
...
This reverts commit c275ad2e6d .
2020-02-13 13:55:39 +02:00
Łukasz Paczos
94a7727fc6
bump snapshot to 9.1.0
2020-02-11 14:48:37 +01:00
Łukasz Paczos
5b1a4ff265
expose option to pass intermadiate points for smooth location animation
2020-02-11 13:37:41 +01:00
tobrun
b15e9f88fc
[location] add location permission
2020-01-30 10:53:22 +01:00
Peng Liu
aea886e741
Lazy load view components in MapView. ( #141 )
...
* Lazy load view components in MapView.
* Fix failing tests.
* Fix style.
* Lazy inflating view components.
* Remove debug logging.
* Fix android ui tests.
2020-01-29 15:03:42 +02:00
tobrun
c4d4f5d10a
[android] - expose UiSettings configuration for disabling horizontall scroll gestures
2020-01-24 16:45:12 +01:00
tobrun
c275ad2e6d
[sku] append sku token to offline download requests
2020-01-17 15:22:20 +01:00
tobrun
369c41ad67
[map] expose pixel ratio as public API on MapView
2020-01-15 11:44:13 +01:00
Igor Tarasov
ef4c225290
AccountManager: write user ID synchronously, keep it in memory. ( #145 )
...
* AccountManager: write user ID synchronously, keep it in memory.
* Unit tests: run AccountsManagerTest with Robolectric.
2020-01-15 12:36:25 +02:00
Peng Liu
7c9a8fc556
Add getVisibleCoordinateBounds method. ( #109 )
...
* Update visible region constructor doc.
* Add getVisibleCoordinateBounds method.
* Fix LatLngBounds#contains method, update to use Map::latLngBoundsForCameraUnwrapped(const CameraOptions& camera) on native side.
* Revert changes in LatLngBounds#contains.
2020-01-09 19:38:29 +02:00