mapbox-android-demo icon indicating copy to clipboard operation
mapbox-android-demo copied to clipboard

Can we update zoom level dynamicly ?

Open yyyyyyyyyunf opened this issue 7 years ago • 1 comments

2019-04-17 12 24 27-min 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?

yyyyyyyyyunf avatar Apr 17 '19 05:04 yyyyyyyyyunf

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

ezgif com-resize

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

langsmith avatar Apr 17 '19 06:04 langsmith