Commit Graph

564 Commits

Author SHA1 Message Date
Tobrun
94a014cde3 [android] - revert making bearing and tilt to radiants (#6656) 2016-10-11 16:51:33 +02:00
Tobrun
fb2338ceca [android] - close response body to avoid connection leak (#6650) 2016-10-11 15:53:16 +02:00
Antonio Zugaldia
4cc7e7de4f [android] #6617 - Introduce a setConnected method to manually set a connected flag
* [android] introduce a setConnected method to manually set a connected flag

* extend connected state to ConnectivityReceiver

* extend connected state to ConnectivityReceiver
2016-10-11 09:17:07 -04:00
Josh Burton
e3c79bfd34 [android] - Use correct nullity annotation for convertView (#6521) 2016-10-11 15:07:47 +02:00
Ivo van Dongen
61d8ecefda [android] Runtime Style Filter enhancements (#6623)
* [android] Additional null check - prevents errors in array conversion

* [android] style conversion - delete local refs asap to avoid ref table overflow

* [android] Filter - hide concrete implementation classes to avoid confusion
2016-10-11 10:30:38 +03:00
Tobrun
5bbd27eb8f [android] - correct degrees/radiants integration into transform.cpp, fixes camera position restoration from core and missing return value occurrence. (#6641) 2016-10-10 23:51:56 +02:00
Tobrun
e598bbfa7c Rotate markerview (#6640)
* [android] - MarkerView rotation bug, limit degrees from 0 to 360 while creating a MarkerView

* update MarkerView#setRotation to limit input from 0 - 360 degrees, calculates difference in angle and animates rotation by a certain amount instead of animating to a value. Exposed new AnimatorUtils#animateRotationTo. Integrated into MarkerViewManager. Cleanup some unused imports. Updated javadoc.

* updated MarkerViewActivity in test application to test for regressions.

* added tests to validate changes to MarkerView#setRotate
2016-10-10 23:51:30 +02:00
Tobrun
740c995c2b [android] - apply tilt to markerview with initial camera position (#6622) 2016-10-07 16:47:16 +02:00
Tobrun
79a80630fd [android] - image opt android layout editor image (#6624) 2016-10-07 15:55:58 +02:00
Tobrun
c2333658f0 [android] - invalidate focal point when setting MyLocationView padding (#6413) 2016-10-05 22:55:54 +02:00
Tobrun
d96aabec43 [android] - correct focal point data when double tapping (#6595) 2016-10-05 22:54:54 +02:00
Tobrun
8b5228d6ec [android] - correct focal point with padding and tilt enabled + cleanup code MyLocationView (#6594) 2016-10-05 22:54:35 +02:00
Tobrun Van Nuland
3b72c288ad [android] refactored exposed api on MapboxMap
fix unit tests

fixup comments
2016-10-05 17:10:45 +02:00
clydebarrow
a4b0e2f30c [android] Revise handling of tracking modes and interactions
with touch gestures.

This fixes issues #6549 and #6567. Also pertinent to #6557.
Additional code has been added to the test app (Activity "User Tracking
Mode") to test.
A potential race condition in the MapboxMap#easeCamera() methods where
a camera change generated by tracking which could have reset the tracking
modes has been eliminated by factoring out a new method
MapboxMap#easeCameraInternal().
2016-10-05 17:10:45 +02:00
Ivo van Dongen
dd7713f6ee [android] javadoc - inter-link style properties properly 2016-10-05 12:15:15 +02:00
Tobrun
e103d92b18 Rework setStyleUrl() logic to avoid NPE as per #6512 (#6574)
* [android] Rework setStyleUrl() logic to avoid NPE as per #6512

* fixup brackets + comment
2016-10-04 15:19:25 +02:00
Tobrun
4bbdb448fd [android] - make MyLocationView responsible for converting tilt to degrees. (#6558) 2016-10-03 17:19:47 +02:00
Justin R. Miller
ee4715a821 update style generation code for new style spec enum values docs (#6508)
Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510. 

This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them.
2016-09-30 15:55:46 -07:00
Ivo van Dongen
8fbc1bc750 [android] addImage / removeImage jni bindings 2016-09-30 17:11:22 +02:00
Tobrun
2879b36a43 [android] - convert bearing value coming from core to degrees (#6526) 2016-09-30 13:31:54 +02:00
Ivo van Dongen
2b05776f97 [android] user agent string 2016-09-29 18:40:10 +02:00
Ivo van Dongen
a126aad0b8 [android] update telemetry user-agent 2016-09-29 18:38:51 +02:00
Tobrun
87a438ec75 Optionable textureview (#6480)
* [android] - make using TextureView optional

* add deprecation comment on texture mode
2016-09-29 15:05:50 +02:00
Tobrun
1fd142a449 [android] - update to lost 1.1.1 (#6476) 2016-09-29 11:43:19 +02:00
Tobrun
c97a1047df 6453 restore tilt after orientation (#6491)
* [android] - correct tilt value when restoring activity or creating from xml

* correct values requesting camera position adhoc

* updated logic change in unit tests
2016-09-29 11:41:08 +02:00
Tobrun
3835ed556b 6402 update offline metadata android (#6456)
* [android] - update offline metadata jni integration

* extract offline utils for reuse

* add test activity for update metadata

* fix requested signature changes
2016-09-28 07:48:01 +02:00
Justin R. Miller
b9fafbc2ee clarify circle color as fill (#6447) 2016-09-23 16:16:47 -07:00
Ivo van Dongen
742d6d8275 [android] set connectivity state pro-actively 2016-09-23 10:47:54 +02:00
Tobrun
e8d47269f8 [android] #5737 - disable tracking when a camera change occurs, treat camera change equal to gesture (#6414) 2016-09-22 10:30:24 -04:00
Young Hahn
6a2ce352d1 Better handling for undefined icon|text-rotation-alignment (#6253)
* [core, ios, android] Use `auto` value for properties with calculated defaults

* Fix render tests
2016-09-21 16:07:33 -07:00
Ivo van Dongen
eb97dbe383 [android] Sources: peer model, mutability (#6054) 2016-09-21 11:04:32 +02:00
Ivo van Dongen
97da387273 [android] update mas dependency (#6398) 2016-09-20 17:04:21 +02:00
Ivo van Dongen
aa47680a02 [android] fire onMapReady only after style is loaded (#6046) 2016-09-20 15:10:33 +02:00
Cameron Mace
073a675c29 [android] Cleans up code in map package (#6380) 2016-09-20 07:49:03 +02:00
Tobrun
72e3d6906d [android] - do not update marker while creating (#6314)
* [android] - do not update marker while creating, add activity to prevent regression

* [core] - add asserts to incorrect usage of update and remove annotations api

* [android] - fix marker tests
2016-09-19 18:03:49 -07:00
Antonio Zugaldia
79708ff9d8 Adjust logging level for failed OkHttp requests (#6378)
* log level depending on the error type
* Squashing and Merging
* remove unnecessary log (with wrong tag)
2016-09-19 17:30:56 -05:00
Tobrun
9ef65440b6 [core] [android] - public api configurable base endpoint (#6309)
add runloop to test
2016-09-15 22:01:09 -07:00
Antonio Zugaldia
d9306dde2e [android] #6317 - avoids NullPointerException when checking mMapboxMap.getUiSettings() (#6318) 2016-09-13 15:44:03 -04:00
Ivo van Dongen
ed4e37ba9f [android] HttpFileSource - rate limit 2016-09-13 14:21:38 +02:00
Tobrun
75e1ce5d00 [android] - ensure access token is set when trying to load a style (#6280) 2016-09-08 15:17:11 -07:00
John Firebaugh
fe2a26225f [core, ios, android, qt] Observe style layer mutations rather than requiring SDKs to use Map::update
This paves the way for updates to filter and layout properties to trigger a source reload, without each SDK having to participate in the implementation.
2016-09-06 14:29:22 -07:00
Cameron Mace
5e8e00561d [android] introduce checkstyle (#6214) 2016-09-01 10:21:49 -04:00
Tobrun
8deb7aaa79 [android] - 5844 remove stop gap for update-able shape annotations (#6187)
* [android] - remove stopgap updatable shape annotations
2016-08-29 17:43:32 +02:00
Sylvain HOCQ
eca745d63a [android] add method addMarkerViews with only one invalidate
* add method addMarkerViews with only one invalidate

* clean sample BulkMarkerActivity
2016-08-29 17:37:09 +02:00
Tobrun
58f7310749 [android] added missing rotation, cleanup duplicate entries (#6153) 2016-08-29 15:10:55 +02:00
Tobrun
4db99d2024 [android] alpha not applied from builder fix for marker view (#6152) 2016-08-29 14:50:52 +02:00
Tobrun
e759f1c948 [android] #6113 - receiver not registered exception (#6130) 2016-08-29 14:47:38 +02:00
Tobrun
1d66eda14b [android] #5875 - MapboxMap options not parceling drawables (#5984)
* [android] #5875 - MapboxMap options not parceling the MyLocationView drawables

* [android] #5875 - disabled parceable test for bitmaps

* [android] #5876 - correct restoration of bitmapdrawable for unit test

* disable check for drawable type
2016-08-29 13:43:22 +02:00
Tobrun
7af5542226 [android] Anchoring was only set once while it was still unmeasured. There are times that a view is still unmeasured even after a measure call. We need to validate again before setting the offset. (#6154) 2016-08-29 13:31:17 +02:00
Tobrun
ed431c925c [android] #6083 - add circle example (#6086)
* add method addMarkerViews with only one invalidate

* [android] #6083 - add circle example
2016-08-29 13:18:32 +02:00