zoomWhileTracking

Zooms to the desired zoom level. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapTransformDelegate.moveBy, MapTransformDelegate.easeTo or ) instead.

If the camera is transitioning when the zoom change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the zoom as a camera change argument.

Parameters

animationDuration

The zoom animation duration.

callback

The callback with finish/cancel information

zoomLevel

The desired zoom level.

fun zoomWhileTracking(zoomLevel: Double, animationDuration: Long, callback: CancelableCallback?)

Zooms to the desired zoom level. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.animateCamera instead.

If the camera is transitioning when the zoom change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the zoom as a camera change argument.

Parameters

animationDuration

The zoom animation duration.

zoomLevel

The desired zoom level.

fun zoomWhileTracking(zoomLevel: Double, animationDuration: Long)

Zooms to the desired zoom level. This API can only be used in pair with camera modes other than CameraMode.NONE. If you are not using any of CameraMode modes, use one of MapboxMap.moveCamera, MapboxMap.easeCamera or MapboxMap.animateCamera instead.

If the camera is transitioning when the zoom change is requested, the call is going to be ignored. Use CameraTransitionListener to chain the animations, or provide the zoom as a camera change argument.

Parameters

zoomLevel

The desired zoom level.

fun zoomWhileTracking(zoomLevel: Double)