Commit Graph

40 Commits

Author SHA1 Message Date
Tobrun
60e5d8c667 [surface] exception free GLSurfaceView implementation (#402) 2020-05-29 09:31:58 +02:00
Kevin Li
f73822d336 Do not take snapshot if map is stopped. (#390) 2020-05-26 15:53:09 +08:00
Kevin Li
0010a58f28 Fix getFilter with distance expression crash. (#380)
* Fix getFilter with distance expression crash.

* Update gl-native and test case

* Bump gl-native to maps-1.6.0

* Update review comment.
2020-05-14 19:39:16 +08:00
Kevin Li
4c511ee971 Update unstable location tests (#383) 2020-05-14 17:30:38 +08:00
Kevin Li
310d8efc89 Add example of image in label (#324) 2020-05-07 08:11:14 +08:00
Łukasz Paczos
f387da9309 Expose LocationComponentOptions#trackingMultiFingerProtectedMoveArea
This option provides a way of defining a protected area on the screen which prevents breaking the camera location when executing a multi finger gesture as long as the focal point of the gesture is within this area.
2020-04-30 16:51:45 +02:00
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
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
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
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
d32133790c Export all activities. (#323) 2020-04-15 17:53:30 +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
4fcae9e2bb Make mapview unable to intercept scroll event. (#308) 2020-04-03 16:32:02 +08: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
02b5e60f86 [testapp] - add example using within expression (#288) 2020-03-24 12:52:54 +01:00
Kevin Li
c8108edc29 Add test demo for filter with expression in (#218)
* Add test demo for filter with expression in

* Update gl-native
2020-03-12 19:03:08 +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
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
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
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
Tobrun
509eeb89d3 [filesource] - update javadoc of setResourceCachePath (#135) 2020-01-09 14:40:17 +01:00
Tobrun
0130763391 Update codebase to androidX (#129)
* update codebase to androidX
2020-01-08 13:46:13 +01:00
Łukasz Paczos
c4782e7a2d deprecate MapboxMap#cycleDebugActive 2019-12-17 14:05:29 +01:00
Tobrun
c85c99f8e8 [projection] add bulk conversion of geographic coordinates to screen coordinates with reusable objects (#91) 2019-12-06 15:30:36 +01:00
Tobrun
c51eab4001 [map] expose getter for the view used for rendering OpenGL on (#87) 2019-12-03 21:00:37 +01:00
Łukasz Paczos
97722e7555 add collection and style smooth reload example 2019-11-13 15:54:21 +01:00
Łukasz Paczos
c396113785 skip jni layers generation 2019-11-13 15:54:21 +01:00
Łukasz Paczos
dfdbaf5493 bump gl-native submodule and bring platform changes 2019-11-13 15:54:21 +01:00
Peng Liu
70214f1e6b Add isLayerReady check in LocationComponent before updating compass listener. (#19) 2019-10-23 11:06:15 +03:00
tobrun
daf0430a24 [update] pull in latest for gl-native 2019-10-09 19:17:25 +02:00
tobrun
a3ef1ac2d0 [build] - initial commit 2019-10-09 13:19:56 +02:00