flyTo

fun flyTo(update: CameraUpdate, durationMs: Int = 300, callback: OnCameraDidChange? = null)

Fly the camera (out then in) to a new position within a specified duration in milliseconds. Only properties specified within CameraUpdate will change. A callback can be used to be notified when the camera stops.

Parameters

update

The change that should be applied to the camera.

durationMs

The duration of the animation in milliseconds. This must be strictly positive, otherwise an IllegalArgumentException will be thrown.

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.