Commit Graph

167 Commits

Author SHA1 Message Date
Kevin Li
f73822d336 Do not take snapshot if map is stopped. (#390) 2020-05-26 15:53:09 +08:00
Tobrun
66a6c0cea7 [ci] rename CI config and move to root project (#398) 2020-05-25 16:52:53 +02:00
Peng Liu
de5003813e [test] Test release build of the test app with robo on firebase. 2020-05-25 17:00:41 +03:00
Harsha Sura
2ee6509013 Apply android-sdk-versions-plugin (#59)
* Apply android-sdk-versions-plugin

* Update android-sdk-versions-plugin to the latest version

* Update android-sdk-versions-plugin to the 1.0.1
2020-05-18 12:35:27 -07:00
Kevin Li
759092957c Fix IllegalArgumentException with EGLConfigChooser (#389) 2020-05-18 19:54:39 +08:00
Kevin Li
f8fade5f00 Update changelog for 9.2.1 (#384)
* Update changelog for 9.2.1

* Update changelog for 9.2.1
2020-05-14 19:41:39 +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
Tobrun
d319e17efe Reset AndroidRendererBackend properly to prevent a crash during rotation on an Android 4.2.2 x86 tablet. (#381)
Co-authored-by: Tsoi Yat Shing <ystsoi@yahoo.com.hk>
2020-05-14 10:19:37 +02:00
Igor Tarasov
05974e2a7f Fix binary size. (#382)
Add compiler and linker options to reduce binary size for release build:
  - reduce symbol visibility: `-fvisibility=hidden`, `-fvisibility-inlines=hidden`;
  - link time optimization `-flto` and enable gold plugin;
  - remove duplicated code: `–icf=all`;
  - size optimization for compilation (`-Oz`);
  - garbage collect unused sections: `-Wl,--gc-sections`
2020-05-13 18:21:07 +03:00
Kevin Li
2473dcc691 Fix text cut off when halo text width is applied (#373)
* Fix text cut off

* Move characters center.

* Shift glyph position
2020-05-12 08:26:11 +08:00
Kevin Li
ea7acd6dee Update changelog for 9.2.0 (#371)
* Update changelog for 9.2.0

* Update changelog for 9.2.0

* Update changelog for 9.2.0

* Update changelog for 9.2.0
2020-05-07 17:22:02 +08:00
Kevin Li
01f1b1e6eb Rollback to System.loadLibrary to load native library. (#368)
* Rollback to System.loadLibrary if SoLoader failed to load library.

* Remove soloader.
2020-05-07 17:08:40 +08:00
Kevin Li
9d5b1f68b1 Bump telemetry to 5.0.1, core to 2.0.1 (#370) 2020-05-07 16:12:09 +08:00
Kevin Li
310d8efc89 Add example of image in label (#324) 2020-05-07 08:11:14 +08:00
Chloe Krawczyk
0e44981d20 finalize 9.2.0-beta.1 changelog (#364) 2020-04-30 13:35:58 -07:00
Chloe Krawczyk
8525620fea Add SDK license file to script and generate new license (#363) 2020-04-30 12:55:11 -07:00
Kevin Li
8625168ea6 Update changelog for 9.2.0-beta.1 (#359)
Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
2020-04-30 12:07:58 -07:00
Łukasz Paczos
77ea09e364 bump gestures library to v0.7.0 2020-04-30 16:51:45 +02: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
Łukasz Paczos
9ae33ea9cc notify about a fling only when it actually executes
This makes sure that we need to meet all of the thresholds and actually start the fling camera animation before dispatching the onFLing event. Previously, it would be dispatched as soon as the compat detector fired.
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
4e878d614d Update gralde configure to only build the target abi. (#341)
* Update gralde configure to only build the target abi.

* Fix sync project error.
2020-04-28 18:32:29 +08:00
Kevin Li
c77a49c15c Make onSnapshotFailed run on main thread. (#347) 2020-04-28 17:48:26 +08:00
Kevin Li
847774712b Bump gl-native to maps-v1.6.0-rc.2 (#344) 2020-04-28 08:26:49 +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
Kevin Li
ec15d862db Update changelog for 9.2.0-alpha.1 (#329)
* Incorporate changes since 9.1.0 and changes in GL Native maps-v1.6.0-rc.1

Co-authored-by: Chloe Krawczyk <chloe.krawczyk@mapbox.com>
2020-04-21 21:54:09 -07: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
e491d3c9ec update license file 2020-04-21 14:36:13 +02:00
Łukasz Paczos
1c88a2261f bump gl-native to 1.6.0-rc.1 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
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
414e155af3 Not rebuild all files (#318) 2020-04-10 21:31:32 +08:00