Map Viewport State
A state object that can be hoisted to control and observe the map's camera state. A MapViewportState may only be used by a single MapboxMap composable at a time as it reflects instance state for a single view of a map.
Parameters
the initial camera position
Constructors
Types
Companion object of MapViewportState.
Functions
Ease the map camera to a given camera options.
Fly the map camera to a given camera options.
Sets ViewportPlugin.status to ViewportStatus.Idle synchronously.
Move the camera instantaneously as specified by cameraOptions. Any camera animation in progress will be cancelled.
Transition to a new FollowPuckViewportState.
Transition to a new OverviewViewportState.
Properties
The current ViewportStatus that represents the status of the viewport.
The reason why the ViewportStatus has been changed.
A utility function to get the default CameraOptions defined in the style.