Viewport Plugin Impl
Mapbox default implementation for ViewportPlugin.
The Viewport plugin allows to track objects on a map.
It provides a structured approach to organizing camera management logic into states and transitions between them.
at any given time, the viewport is either:
idle (not updating the camera)
in a state (camera is being managed by a ViewportState)
transitioning (camera is being managed by a ViewportTransition)
Constructors
Functions
Adds ViewportStatusObserver to observe the status change.
Immediately goes to ViewportStatus.Idle state canceling all ongoing transitions.
Create a default ViewportTransition instance with provided DefaultViewportTransitionOptions.
Create a FollowPuckViewportState instance with provided FollowPuckViewportStateOptions.
Create a ViewportTransition instance that transition to the target ViewportState immediately.
Create an OverviewViewportState instance with provided OverviewViewportStateOptions.
Provides all map delegate instances.
Removes ViewportStatusObserver.
Executes a transition to requested state.
Properties
Options that impact the ViewportPlugin.