mapbox-android-demo
mapbox-android-demo copied to clipboard
Can we update zoom level dynamicly ?
We noticed an amazing animation in the ios demo which updates the camera(especially the zooming) in an AccelerateDecelerateInterpolator manner,Can we implement this with Mapbox Android SDK?
Hi @zongyunfeng , thanks for looking into Mapbox. This is possible with the Mapbox Maps SDK for Android.
See the AnimateMapCameraActivity in this demo app: https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/camera/AnimateMapCameraActivity.java

You could hook a ValueAnimator that has whatever interpolator(s) you want, into to the CameraPosition class and animateCamera()/ easeCamera().