Camera State
Use this class to access information about the map in relation to the camera.
Properties
Link copied to clipboard
whether the camera is currently moving
Link copied to clipboard
meters per dp at the target position. Zero when the map is not initialized yet.
Link copied to clipboard
reason why the camera moved, last time it moved
Link copied to clipboard
how the camera is oriented towards the map
Link copied to clipboard
null until the CameraState has been attached to a map
Functions
Link copied to clipboard
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)
Animates the camera towards the specified boundingBox in the given duration time with the specified bearing, tilt, and padding.
Link copied to clipboard
Suspends until the CameraState has been attached to the map.