Commit Graph

173 Commits

Author SHA1 Message Date
Peng Liu
f0d3d459b8 [android] Keep CompassView's state up to date when compass is enabled. (#15606)
* [android] Keep CompassView's state up to date when compass is enabled.

* [android] Add unit test for updating compass view.

* [android] Add change log.
2019-09-12 11:59:56 +03:00
Tobrun
a691db5343 [android] Call callback.onFinish() when camera is already at the correct position
[android] Call callback.onFinish() when camera is already at the correct position
2019-09-04 18:13:31 +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
Łukasz Paczos
6a4e431dbe [android] do not clear native layers and sources when style is reloading
This prevents unnecessary layers blink when the same components are re-added after the style reload.
2019-08-29 10:38:48 +02:00
Łukasz Paczos
ec1228242b [android] invalidate foreground icon sources even when location layer is hidden 2019-08-28 13:29:47 +02:00
tobrun
309f566800 [android] add font array attribute configuration for local ideograph font, add enable flag attribute configuration 2019-08-28 08:58:57 +02:00
Langston Smith
9263cdd856 [android] Updating HttpRequestUrl to separate offline requests from Maps SKU (#15363) 2019-08-21 09:48:36 -07:00
Łukasz Paczos
3e73e4d49f [android] improve scale + rotation behavior 2019-08-15 18:08:29 +03:00
tobrun
58d7734722 [android] add fallback support to local ideograph font families, allow setting a collection of fonts 2019-08-12 14:30:07 +03:00
tobrun
9cf1746e35 [android] - load style without url or json 2019-08-01 17:40:48 +03:00
Łukasz Paczos
300f0b5980 [android] do not reinitialize camera/render mode if it hasn't changed
Camera/Render mode updates can be streamed from various different stateless sources and we should make sure to skip an update to a mode that's already set. This keeps the callbacks tidy and does not perform unnecessary work.
2019-07-31 18:17:16 +03:00
Łukasz Paczos
f86f0226dd [android] ensure default local ideographs font family is not overwrote 2019-07-30 13:53:03 +02:00
Łukasz Paczos
dabf5d0c3a [android] remove layers first when clearing the style 2019-07-22 16:03:53 +02:00
tobrun
dd16eadc38 [android] - add ktlint, optimise code for ktlint validation 2019-07-04 12:08:49 +02:00
tobrun
c5b04677f0 [android] - add setVerbosity to Logger, add LogLevel IntDef 2019-06-25 14:39:14 +02:00
Łukasz Paczos
41980af469 [android] refactor LocationComponentTest to use consistent mocking tools 2019-06-24 11:37:21 +02:00
Łukasz Paczos
fe570fb206 [android] reset location layer animators when render mode changes 2019-06-24 11:37:21 +02:00
Łukasz Paczos
55527d0412 [android] accept floating numbers during core->platform color conversion 2019-06-18 13:22:44 +02:00
Tobrun
c2fb3cc76f [android] - add resource usage to HttpRequest, add offline query parameter flag to http request (#14837) 2019-06-12 16:40:59 +02:00
tobrun
36361192b1 [android] - rename style component URL api to URI 2019-06-05 09:38:20 +02:00
Pablo Guardiola
0181ef8f63 [android] add support for external sdk clients to be able to manage the tokens on their side (#14631) 2019-05-30 11:24:24 -04:00
Łukasz Paczos
5bb0a49dc9 [android] option to change the zoom rate 2019-05-29 10:16:01 +02:00
Łukasz Paczos
bc74a8ee0b [android] break location camera tracking when a developer invoked animation starts 2019-05-24 10:11:18 +02:00
tobrun
3f48f27363 [android] - ignore telemtry schema size test for map load 2019-05-16 19:31:56 +02:00
Tobrun
947bc75f56 [android] - remove internal gesture event handling code, deprecate public gesture event hooks 2019-05-10 12:12:52 +02:00
Łukasz Paczos
9fb41a74bc [android] normalize previous rotation values of the location animator 2019-05-10 10:09:27 +02:00
tobrun
b1c1471713 [android] - remove skuId from schema test 2019-05-10 06:57:00 +02:00
Łukasz Paczos
6fa1d357b3 [android] option to provide custom values for location camera transition 2019-05-09 19:43:49 +02:00
Kevin Li
386b013c5e [Android]Expand schema test, modify performance event (#14535)
* expand schema test, modify performance event

* enclose java doc

* revert int to long
2019-05-02 16:55:20 +08:00
Łukasz Paczos
50483cafa6 [android] clear up LocationComponent's z-index positioning docs and add "layer-above" option 2019-04-24 14:24:23 +02:00
Antonio Zugaldia
d0a1526a94 [android] Introduce AccountsManager to support SKU tokens in API requests (#14404) 2019-04-18 16:29:20 -04:00
kevin
8bbd38093c add schema test 2019-04-18 16:00:12 +02:00
kevin
ef5b00b810 Add hashcode(), equals() and toString() methods to Events class. 2019-04-18 16:00:12 +02:00
kevin
2b576d24f0 Polish codes and add test cases 2019-04-18 16:00:12 +02:00
tobrun
278d856372 [android] - program against NativeMap interface 2019-04-16 15:16:07 +02:00
Łukasz Paczos
f22c014b91 [android] check for Mapbox#INSTANCE when initializing the MapView 2019-04-09 10:52:24 +02:00
tobrun
744ce2c026 [android] - allow resetting a custom OkHttp client to the default implementation 2019-04-08 15:13:33 +02:00
Łukasz Paczos
03159b3589 [android] clear previous style loaded listener when setting a new style 2019-04-04 17:14:22 +02:00
Łukasz Paczos
af74d00b05 [android] add unit tests for #14171 2019-04-04 13:42:14 +02:00
Łukasz Paczos
463a6b2736 [android] clear camera callbacks' message queue when the map is destroyed 2019-04-02 14:14:47 +02:00
Łukasz Paczos
1aa44d5451 [android] do not reset custom location gestures manager if already set 2019-04-01 17:38:51 +02:00
tobrun
3e106c3f56 [android] - LatLng#distanceTo uses TurfMeasurement#distance 2019-04-01 16:11:09 +02:00
Łukasz Paczos
0f947b912b [android] cache location layer IDs in a set instead of a list 2019-03-18 13:25:01 +01:00
Łukasz Paczos
f1ac3f29c3 [android] text-color option for formatted sections 2019-03-15 16:17:59 +01:00
Łukasz Paczos
103f86c4bc [android] set a blank style when an empty builder is provided 2019-03-12 16:53:19 +01:00
Langston Smith
7e4824960c [android] Adding builder pattern for LocationComponent activation (#13941)
* initial additions of activation builder

* [android] refactoring LocationComponentActivationOptions based on code review

* [android] initial addition of LocationComponentActivationOptionsTest unit tests

* [android] more refactoring based on code review

* [android] refactoring test app location examples

* [android] espresso test refactor with LocationComponentActivationOptions usage

* [android] locationComponent builder instrumentation test tweaks and log removal

* [android] method and docs refactoring based @lukaspaczos 's review

* [android] locationEngine setting logic refactor

* [android] add null locationEngine to stillStaleAfterResuming test

* added .locationEngine(null) to other tests

* [android] javadocs, method, and test adjustments based on @lukaspaczos review

* [android] test tweaks based on Lukasz review
2019-03-05 11:05:06 -08:00
Langston Smith
4bc56cc576 [android] added areAllGesturesEnabled() method and test (#14022) 2019-03-04 07:21:06 -08:00
Łukasz Paczos
2ce70f7335 [android] verify no native method is called when saving state 2019-03-04 12:33:39 +01:00
Łukasz Paczos
638b91afc4 [android] add plural style builder methods 2019-03-04 12:33:14 +01:00
Łukasz Paczos
5e41fd44f2 [android] clear singleton instance of Mapbox after running unit test suite 2019-02-26 15:06:21 +01:00