rememberMapCameraController
fun rememberMapCameraController(cameraState: CameraState, mapWidth: Float = 512.0f, mapHeight: Float = 512.0f, minDistance: Float = 1.0f, zoomSpeed: Float = 0.01f): MapCameraController
Creates and remembers a MapCameraController driving cameraState in MAP mode.
Drag pans the view; scroll wheel and pinch zoom in/out. No rotation.
The tuning parameters are reactive — changing them at runtime rebuilds the manipulator while keeping the current camera pose, so nothing jumps.
Parameters
cameraState
Camera this controller drives; also seeds its home pose.
mapWidth
Pannable world extent along X.
mapHeight
Pannable world extent along Z.
minDistance
Minimum zoom distance (closest the camera can get).
zoomSpeed
Scroll / pinch zoom sensitivity.