summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java
diff options
context:
space:
mode:
authorŁukasz Paczos <lukasz.paczos@mapbox.com>2018-10-03 11:30:54 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2018-10-03 13:13:17 +0200
commit5bfdd9fb8d721140172be2217a96980a6b94cb6b (patch)
tree92a2e06c434c3ac97f3d032b4c1de79af17b7fea /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java
parentb31245b96583a7e25aba9626d43080276e647e61 (diff)
downloadqtlocation-mapboxgl-5bfdd9fb8d721140172be2217a96980a6b94cb6b.tar.gz
[android] - move camera and puck immediately when starting to track and displacement is big
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java
index 40aae5bb6f..4376ef4e60 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/location/LocationComponentConstants.java
@@ -23,6 +23,9 @@ final class LocationComponentConstants {
// Default animation duration for tilting while tracking.
static final long DEFAULT_TRACKING_TILT_ANIM_DURATION = 1250;
+ // Threshold value to perform immediate camera/layer position update.
+ static final double INSTANT_LOCATION_TRANSITION_THRESHOLD = 500_000;
+
// Sources
static final String LOCATION_SOURCE = "mapbox-location-source";
static final String PROPERTY_GPS_BEARING = "mapbox-property-gps-bearing";