ViewportTransition

fun interface ViewportTransition

Defines how to transition to another ViewportState.

ViewportTransition is used by ViewportPlugin to orchestrate transitions to and from different ViewportState.

Mapbox provides implementations of ViewportTransition that can be created and configured via methods on ViewportPlugin. Applications may also define their own implementations to handle advanced use cases not covered by the provided implementations.

See also

Functions

run
Link copied to clipboard
abstract fun run(to: ViewportState, completionListener: CompletionListener): Cancelable

Run the ViewportTransition from current viewport to the target ViewportState.

Inheritors

DefaultViewportTransition
Link copied to clipboard