Camera Position State
A state object that can be hoisted to control and observe the map's camera state. A CameraPositionState may only be used by a single GoogleMap composable at a time as it reflects instance state for a single view of a map.
Parameters
position
the initial camera position
Constructors
CameraPositionState
Link copied to clipboard
fun CameraPositionState(position: CameraPosition = CameraPosition(LatLng(0.0, 0.0), 0f, 0f, 0f))
Content copied to clipboard
the initial camera position
Types
Functions
Properties
cameraMoveStartedReason
Link copied to clipboard
The reason for the start of the most recent camera moment, or CameraMoveStartedReason.NO_MOVEMENT_YET if the camera hasn't moved yet or CameraMoveStartedReason.UNKNOWN if an unknown constant is received from the Maps SDK.
projection
Link copied to clipboard