setViewpointAnimated

suspend fun setViewpointAnimated(viewpoint: Viewpoint, duration: Duration, curve: AnimationCurve): Result<Boolean>

Animates the map view to the new viewpoint, taking the given duration to complete the navigation.

Return

a Result indicating whether the viewpoint was successfully set. A success result with a value of false may indicate the operation was cancelled.

Since

200.4.0

Parameters

viewpoint

the new viewpoint

duration

the duration of the animation

curve

the animation curve to apply