Viewport Plugin
The ViewportPlugin 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)
Functions
Subscribes ViewportStatusObserver to observe the ViewportStatus change.
Sets ViewportPlugin.status to ViewportStatus.Idle synchronously.
Called when the plugin is first added to the map.
Create a new DefaultViewportTransition instance with provided DefaultViewportTransitionOptions.
Create a new FollowPuckViewportState instance with provided FollowPuckViewportStateOptions.
Create a new ViewportTransition instance that transition to the target ViewportState immediately.
Create a new OverviewViewportState instance with provided OverviewViewportStateOptions.
Provides all map delegate instances.
Unsubscribes ViewportStatusObserver from ViewportPlugin.status changes.
Executes a transition to requested state.
Properties
ViewportPlugin.transitionTo uses this transition unless some non-null value is passed to its transition argument.
Configuration options that impact the ViewportPlugin.