Commit Graph

641 Commits

Author SHA1 Message Date
Tobrun
b387105419 [android] - remove deprecated setAccessToken and getAccessToken from OfflineManager, make validating the access token a part of getAccessToken in Mapbox. (#7582) 2017-01-04 12:15:26 +01:00
Tobrun
654061c7d1 [android] - limit the scale factor for double tap zoom (#7580)
* [android] - limit the scale factor to avoid accelerating the double tap zoom gesture

* clamp values
2017-01-03 20:27:44 +01:00
Tobrun
8d52806cbb [android] - update components with latest camera values (#7499) 2016-12-21 21:07:00 +01:00
Tobrun
b42494570e [android] - fix null pointer on trackingsettings (#7505) 2016-12-21 21:06:39 +01:00
Tobrun
dff42cac68 [android] - harden MapboxMapOptions, extract duplicate fragment logic, fixup DoubleMapActivity (#7507) 2016-12-21 21:06:26 +01:00
Tobrun
2b38af8778 [android] - update lost to 2.0.0, gradle cleanup (#7494) 2016-12-21 12:32:07 +01:00
philemonmerlet
3032a67a53 [android] Upgrade OKHTTP to 3.5.0 (released december the 1st, 2016) (#7491) 2016-12-20 16:49:11 +01:00
Tobrun
83f1350747 MapboxAccountManager refactor, removal deprecated accesstoken (#7462)
* [android] - move object ownership, move depenencies and responsibility.

* [android] - MapboxAccountManager refactor, removal deprecated accesstoken.
2016-12-17 20:25:16 +01:00
Cameron Mace
20b958301e Adds checkstyle to CI (#7442)
* adds checkstyle to CI

* fixed gradlew path

* resolved testapp checkstyle violations

* added back mapboxMap variable for test

* checkstyle annotations

* checkstyle SDK round 1

* maps package checkstyle

* rest of SDK checkstyle

* checkstyle gesture library

* checkstyle test

* finished rest of test checkstyle

* resolved all checkstyle errors

* fixed class name

* removed old test file

* fixed camera postion test

* fixed native crash
2016-12-16 16:19:15 -05:00
Tobrun
f95b4838ea [android] - move min/max zoom to transform class, cleanup usage of double vs float, renaming for parity (#7306) 2016-12-15 16:57:30 +01:00
Tobrun
05c6935556 [android] - add OnMarkerView add callback (#7429) 2016-12-14 22:09:30 +01:00
Cameron Mace
3d5983f6f6 Allows for setting the user location icon to transparent (#7393)
* allows for setting the user location icon to transparent

* removed color check
2016-12-14 12:51:04 -05:00
Cameron Mace
833c5ca2be Fixed proguard rules (#7389)
* fixed proguard rules

* disabled proguard for debug testapp builds

* removed dontobfuscate and fixed gson issue
2016-12-13 14:40:51 -05:00
Minh Nguyễn
36616c7200 [android] Fixed typo in MapboxMap.addImage() 2016-12-13 09:28:42 -08:00
Tobrun
b43aa9d62d [android] - limit input fling gesture based on map tilt. (#7383) 2016-12-13 08:08:29 +01:00
Tobrun
ee7e58fd46 [android] - invalidate camera after gesture, cleanup. (#7354) 2016-12-09 21:19:59 +01:00
John Firebaugh
82856fd08b [darwin, android] SDK bindings for circle-stroke properties 2016-12-09 09:35:21 -08:00
Tobrun
970a0dab44 [android] - cleanup initialisation code for MapboxMap (#7330) 2016-12-09 15:38:09 +01:00
Tobrun
1d93ffc5eb [android] - refactor marker selection and listener invocation, reformatted code (#7304) 2016-12-08 14:37:15 +01:00
Tobrun
7cf10ee524 [android] - remove location enabled flag from MapboxMap (#7308)
* [android] - remove location enabled flag from MapboxMap, decouple TrackingSettings from MyLocationViewSettings using a FocalPointChangeListener interface, Move state related to tracking modes to MyLocationView (shared object between MyLocationViewSettings and FocalPointChangeListener).

* fixup tests
2016-12-08 14:37:01 +01:00
Tobrun
3d2dc47191 [android] - only apply screen density to instance variables of MapboxMapOptions. (#7327) 2016-12-07 21:56:40 +01:00
Tobrun
077d685656 [android] - make rotation gesture easier to trigger (#7299) 2016-12-06 19:40:20 +01:00
Tobrun
bcf911ba8b [android] Fix javadoc for MapboxMap.updateMarker() (#7301) 2016-12-06 19:40:01 +01:00
Tobrun
9a9e7978db [android] - Refactor dependencies, introduce focused components (#7189)
* [android] - refactor dependencies

* ignore tests
2016-12-06 13:46:49 +01:00
Ivo van Dongen
d904ba66ab [android] telemetry - horizontal accuracy 2016-12-02 12:23:29 +02:00
Cameron Mace
b1068b432e cherry-picked 7013 into master (#7247) 2016-12-01 08:48:25 -05:00
Pablo Guardiola
13b7b3a92b [android] - add uithread annotation and regenerate classes (#7156) 2016-11-30 13:54:26 +01:00
Tobrun
b57b3b4bf6 [android] - Explicitly use hardware layer when (#7186)
animating the CompassView alpha.
2016-11-28 18:40:50 +01:00
Ivo van Dongen
74a7a5a0d4 [android] add source_did_change event to intdef list 2016-11-28 18:13:53 +02:00
Tobrun
b49c5a711a [android] - handle null location update for MyLocationView (#7190) 2016-11-28 13:39:52 +01:00
Tobrun
644ca74906 [android] - fix null pointer when no camera position is available on map initialisation (#7181) 2016-11-28 10:36:46 +01:00
Pablo Guardiola
ac924719e1 [android] - replace Android logs with Timber (#6372) (#7149) 2016-11-23 11:48:07 -05:00
Tobrun
edb487b74d [android] - move camera logic to dedicated transform class (#6919)
* [android] - move camera logic to dedicated transform class

post camera updates to the message queue, this makes calling an new camera update in the on finish of another update possible. Simplify transform.java implementation.

* fail the step if instrumentation tests fail, fixup typo
2016-11-23 10:53:39 +01:00
Tobrun
5877d786e1 [android] - use double to restore instance state of MyLocationView (#7146) 2016-11-22 19:23:20 +01:00
Tobrun
dff218c30e [android] - allow deselection of a MarkerView not found in current viewport (#7140) 2016-11-22 15:21:06 +01:00
Tobrun
109565c400 [android] - allow compass update without animation (#7094) 2016-11-18 13:45:32 +01:00
Fredrik Karlsson
d959fe1522 [android] fixed horizontal panning going the opposite direction 2016-11-18 09:21:38 +01:00
Ivo van Dongen
36dea5ea0d [android] return source ownership on remove 2016-11-14 14:05:18 +01:00
Ivo van Dongen
8d53f9f091 [android] return layer ownership on remove 2016-11-14 14:05:18 +01:00
Tobrun
f66ea0bef9 [android] - getMarkerViews in rect should return in bound views (#7015)
* [android] - getMarkerViews in rectangle should only return in bound views.

* added example in test app for debugging

* Covert rectangle coming in to density dependant rectangle
2016-11-14 12:08:03 +01:00
Tobrun
fa6d586417 [android] - allow using rotate gesture when not tracking user location, correctly update bearing during rotation gesture (#6978) 2016-11-14 10:37:34 +01:00
Tobrun
720a0256f5 Default Style Camera on Android (#7019)
* [core] - do not set camera mutated to true when calling Map::getLatLng

* [android] - correctly check if a Map is created without a camera position
2016-11-11 18:13:25 +01:00
Ivo van Dongen
185983f2f7 [android] source/layer java doc 2016-11-11 13:46:10 +01:00
Ivo van Dongen
822b83ae4e [android] fix source ownership 2016-11-11 13:46:10 +01:00
Ivo van Dongen
3a4a27c95f [android] fix layer ownership 2016-11-11 13:46:10 +01:00
Tobrun
fcbb7c1860 [android] - check for default values when constructing a camera position from a CameraUpdate (#7002) 2016-11-10 19:10:07 +01:00
Tobrun
33aa14c939 [android] - instrumentation tests upgrade, move view checking to utility class, remove inheritance in runtime style test (#6803)
update gitignore for generated tests

add camera move test

add realtime geojson to be excluded when generating Activity sanity tests

by default show workaround for showing a MapView in a dialog

add annotation tests

remove older camera tests, introduce tests for move, ease and animate, bring back setLatLng and getLatLng on MapView, add tests for internal camera API.

compass view tests

add tests for attribution and logo.

fix annotation tests

Rename Actiivity test class, split up annotation tests, added MarkerView tests, added infowindow tests, added MyLocationView tests

fix addRemoveLayer test by integrating map interactions inside a ViewAction
2016-11-09 12:56:49 +01:00
Tobrun
4030e86c33 [android] - fix inconsistency of float usage in CameraPosition and CameraUpdateFactory (#6941) 2016-11-09 10:51:40 +01:00
Tobrun
772324e8f2 Cherry pick release v4.2.0 (#6944)
* [android] - MyLocationView should facing above when location and compass bearing tracking are enabled. (#6829)

* [android] - use current animated rotation value for calculating animated marker rotation difference (#6826)

fix unit tests, input limiting is not handled by animateRotationBy instead of MarkerView.
Changed test to validate if method was called with correct value.

* [android] - only calculated offset margins for InfoWindow if View is found in current viewport, added example to the test app to test for regressions (#6877)

* upgraded okhttp dependency to latest version (#6880)

* Cancelable callback invocation (#6891)

* [android] - allow onCancel to be invoked from camera cancel callbacks

* set to null after finish

* [android]  - using bearing clockwise versus counterclockwise (#6917)

* [android]  - using bearing clockwise versus counterclockwise

* fixup brackets

* [android] - convert bearing values from core to Android SDK equivalent.
2016-11-09 10:42:18 +01:00
Cameron Mace
6b85d4c2f9 added attribution tint color check (#6950) 2016-11-07 18:23:18 -05:00