animate To
Animates the camera towards the finalPosition in duration time.
suspend fun animateTo(boundingBox: BoundingBox, bearing: Double = 0.0, tilt: Double = 0.0, padding: PaddingValues = PaddingValues(0.dp), duration: Duration = 300.milliseconds)(source)
Animates the camera towards the specified boundingBox in the given duration time with the specified bearing, tilt, and padding.
Parameters
bounding Box
The bounds to animate the camera to.
bearing
The bearing to set during the animation. Defaults to 0.0.
tilt
The tilt to set during the animation. Defaults to 0.0.
padding
The padding to apply during the animation. Defaults to no padding.
duration
The duration of the animation. Defaults to 300 ms. Has no effect on JS.