zoomWhileTracking

open fun zoomWhileTracking(zoomLevel: Double, animationDuration: Long, @Nullable callback: MapLibreMap.CancelableCallback)

Zooms to the desired zoom level. This API can only be used in pair with camera modes other than NONE. If you are not using any of CameraMode modes, use one of moveCamera, easeCamera or 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.

animationDuration

The zoom animation duration.

callback

The callback with finish/cancel information


open 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 NONE. If you are not using any of CameraMode modes, use one of moveCamera, easeCamera or 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.

animationDuration

The zoom animation duration.


open fun zoomWhileTracking(zoomLevel: Double)

Zooms to the desired zoom level. This API can only be used in pair with camera modes other than NONE. If you are not using any of CameraMode modes, use one of moveCamera, easeCamera or 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.