CameraState
Properties
Functions
Link copied to clipboard
suspend fun animateCamera(cameraOptions: CameraOptions, animationDuration: Duration = DEFAULT_ANIMATION_DURATION)
Moves the camera according to the given cameraOptions and animates the transition.
suspend fun animateCamera(factory: CameraOptionsFactory.() -> CameraOptions, animationDuration: Duration = DEFAULT_ANIMATION_DURATION)
Moves the camera according to the CameraOptions created by factory and animates the transition.
Link copied to clipboard
Immediately moves the camera according to the given cameraOptions.
Immediately moves the camera according to the CameraOptions created by factory.
Link copied to clipboard
Link copied to clipboard
Updates camera view to fit all route points with additional padding.
Link copied to clipboard
fun zoomToMarkers(markersIds: List<MarkerId> = emptyList(), zoom: Double = 12.0, padding: Dp = 0.dp)
Zooms to the markers identified by markersIds. If this results in focusing on a single marker, the specified zoom level is used. Nothing happens if no markers are identified.