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.
Types Constructors Functions Properties Parameters
= CameraPosition(LatLng(0.0, 0.0), 0f, 0f, 0f))
the initial camera position
Animate the camera position as specified by
, returning once the animation has completed.
Move the camera instantaneously as specified by
Whether the camera is currently moving or not.
Current position of the camera on the map.
Returns the current
to be used for converting between screen coordinates and lat/lng.