Viewport Plugin
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)
Functions
addStatusObserver
Link copied to clipboard
abstract fun addStatusObserver(viewportStatusObserver: ViewportStatusObserver)
Content copied to clipboard
Adds ViewportStatusObserver to observe the status change.
initialize
Link copied to clipboard
makeDefaultViewportTransition
Link copied to clipboard
abstract fun makeDefaultViewportTransition(options: DefaultViewportTransitionOptions = DefaultViewportTransitionOptions.Builder().build()): DefaultViewportTransition
Content copied to clipboard
makeFollowPuckViewportState
Link copied to clipboard
abstract fun makeFollowPuckViewportState(options: FollowPuckViewportStateOptions = FollowPuckViewportStateOptions.Builder().build()): FollowPuckViewportState
Content copied to clipboard
makeImmediateViewportTransition
Link copied to clipboard
makeOverviewViewportState
Link copied to clipboard
abstract fun makeOverviewViewportState(options: OverviewViewportStateOptions): OverviewViewportState
Content copied to clipboard
onDelegateProvider
Link copied to clipboard
removeStatusObserver
Link copied to clipboard
abstract fun removeStatusObserver(viewportStatusObserver: ViewportStatusObserver)
Content copied to clipboard
Removes ViewportStatusObserver.
transitionTo
Link copied to clipboard
abstract fun transitionTo(targetState: ViewportState, transition: ViewportTransition? = null, completionListener: CompletionListener? = null)
Content copied to clipboard
Properties
defaultTransition
Link copied to clipboard
DefaultViewportTransition with default options.
options
Link copied to clipboard
Options that impact the ViewportPlugin.
status
Link copied to clipboard
Returns current ViewportStatus.
Inheritors
ViewportPluginImpl
Link copied to clipboard