setZoomLevel

fun setZoomLevel(zoomLevel: Double, animated: Boolean = false)

Repositions the camera to a different zoom level. Short-hand method for moveCamera(CameraUpdate(zoom = z)).

Parameters

zoomLevel

The new zoom for the camera

animated

If true, uses easeCamera instead (default: false)


fun setZoomLevel(zoomLevel: Double, animated: Boolean = false, callback: OnCameraDidChange? = null)

Repositions the camera to a different zoom level. Short-hand method for moveCamera(CameraUpdate(zoom = z)).

Parameters

zoomLevel

The new zoom for the camera

animated

If true, uses easeCamera instead (default: false)

callback

An optional callback to be notified from the main thread when the animation stops. The callback will be called with one parameter of type CameraCallbackStatus indicating if the animation was complete or canceled.