Package-level declarations

Camera controls and positioning utilities for the map view.

Types

Link copied to clipboard
Link copied to clipboard
@Stable
data class CameraPosition(val bearing: Double = 0.0, val target: Position = Position(0.0, 0.0), val tilt: Double = 0.0, val zoom: Double = 1.0, val padding: PaddingValues = PaddingValues(0.dp))

Defines how the camera is oriented towards the map.

Link copied to clipboard

Provides an imperative API to interact with the projection of the map, such as converting coordinates or querying what's visible.

Link copied to clipboard
class CameraState(firstPosition: CameraPosition)

Use this class to access information about the map in relation to the camera.

Functions

Link copied to clipboard
@Composable
fun rememberCameraState(firstPosition: CameraPosition = CameraPosition()): CameraState

Remember a new CameraState in the initial state as given in firstPosition.