rememberMapCameraController

Creates and remembers a MapCameraController driving cameraState. Home (CameraController.resetToHome) is the state's viewpoint when this is first called; zoomSpeed is reactive.

val cameraState = rememberCameraState(
initialEye = Position(0f, 40f, 0f), initialTarget = Position(0f), initialUp = Direction(0f, 0f, -1f),
)
val map = rememberMapCameraController(cameraState)

Parameters

cameraState

Camera this controller drives.

zoomSpeed

Scroll / pinch zoom sensitivity: the fraction of the way to the pointer per scroll unit.