easeCamera

Gradually move the camera by the default duration, zoom will not be affected unless specified within CameraUpdate. If getCameraPosition is called during the animation, it will return the current location of the camera in flight.

Parameters

update

The change that should be applied to the camera.

See also

for a set of updates.


Gradually move the camera by the default duration, zoom will not be affected unless specified within CameraUpdate. If getCameraPosition is called during the animation, it will return the current location of the camera in flight.

Parameters

update

The change that should be applied to the camera.

callback

An optional callback to be notified from the main thread when the animation stops. If the animation stops due to its natural completion, the callback will be notified with onFinish(). If the animation stops due to interruption by a later camera movement or a user gesture, onCancel() will be called. Do not update or ease the camera from within onCancel().

See also

for a set of updates.


fun easeCamera(@NonNull update: CameraUpdate, durationMs: Int)

Gradually move the camera by a specified duration in milliseconds, zoom will not be affected unless specified within CameraUpdate. If getCameraPosition is called during the animation, it will return the current location of the camera in flight.

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.

See also

for a set of updates.


Gradually move the camera by a specified duration in milliseconds, zoom will not be affected unless specified within CameraUpdate. A callback can be used to be notified when easing the camera stops. If getCameraPosition is called during the animation, it will return the current location of the camera in flight.

Note that this will cancel location tracking mode if enabled.

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. If the animation stops due to its natural completion, the callback will be notified with onFinish(). If the animation stops due to interruption by a later camera movement or a user gesture, onCancel() will be called. Do not update or ease the camera from within onCancel().

See also

for a set of updates.


fun easeCamera(@NonNull update: CameraUpdate, durationMs: Int, easingInterpolator: Boolean)

Gradually move the camera by a specified duration in milliseconds, zoom will not be affected unless specified within CameraUpdate. A callback can be used to be notified when easing the camera stops. If getCameraPosition is called during the animation, it will return the current location of the camera in flight.

Note that this will cancel location tracking mode if enabled.

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.

easingInterpolator

True for easing interpolator, false for linear.


fun easeCamera(@NonNull update: CameraUpdate, durationMs: Int, easingInterpolator: Boolean, @Nullable callback: MapLibreMap.CancelableCallback)

Gradually move the camera by a specified duration in milliseconds, zoom will not be affected unless specified within CameraUpdate. A callback can be used to be notified when easing the camera stops. If getCameraPosition is called during the animation, it will return the current location of the camera in flight.

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.

easingInterpolator

True for easing interpolator, false for linear.

callback

An optional callback to be notified from the main thread when the animation stops. If the animation stops due to its natural completion, the callback will be notified with onFinish(). If the animation stops due to interruption by a later camera movement or a user gesture, onCancel() will be called. Do not update or ease the camera from within onCancel().