summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-08-24 16:44:46 -0400
committerMinh Nguyễn <mxn@1ec5.org>2015-10-26 12:48:03 -0700
commit750c72f324464e8c2a91c8148299cc57c520c5c4 (patch)
treea8bbfe397a7d225a11b182913e8688feb9da8bbd /platform/android
parentbb6241844a092cf632fe740e6ac79c920117dd4e (diff)
downloadqtlocation-mapboxgl-750c72f324464e8c2a91c8148299cc57c520c5c4.tar.gz
improve gestures in perspective view
The location under your finger stays under your finger as you pan. The location you double tap to zoom stays at the same point. The location at the center of a pinch zoom stays at the center. The location at the center of a rotation stays at the center.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/jni.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/jni.cpp b/platform/android/jni.cpp
index d0d3ea2970..5808dff9c8 100644
--- a/platform/android/jni.cpp
+++ b/platform/android/jni.cpp
@@ -637,7 +637,7 @@ void JNICALL nativeSetLatLng(JNIEnv *env, jobject obj, jlong nativeMapViewPtr, j
return;
}
- nativeMapView->getMap().setLatLng(mbgl::LatLng(latitude, longitude), std::chrono::milliseconds(duration));
+ nativeMapView->getMap().setLatLng(mbgl::LatLng(latitude, longitude), mbgl::Duration(duration));
}
jobject JNICALL nativeGetLatLng(JNIEnv *env, jobject obj, jlong nativeMapViewPtr) {