AnnotationPlugin

Plugin interface for the annotation.

interface AnnotationPlugin : MapPlugin, MapSizePlugin, MapStyleObserverPlugin

Functions

cleanup
Link copied to clipboard

Called when the map is destroyed. Should be used to cleanup plugin resources for that map.

open override fun cleanup()
createAnnotationManager
Link copied to clipboard

Get an annotation manger

abstract fun createAnnotationManager(mapView: View, type: AnnotationType, annotationConfig: AnnotationConfig?): AnnotationManager<*, *, *, *, *, *>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initialize
Link copied to clipboard

Called when the plugin is first added to the map.

open override fun initialize()
onDelegateProvider
Link copied to clipboard

Provides all map delegate instances.

open override fun onDelegateProvider(delegateProvider: MapDelegateProvider)
onSizeChanged
Link copied to clipboard

Invoked when MapView's width and height have changed.

open override fun onSizeChanged(width: Int, height: Int)
onStyleChanged
Link copied to clipboard

Called when a new Style is loaded.

abstract override fun onStyleChanged(styleDelegate: StyleManagerInterface)
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

AnnotationPluginImpl
Link copied to clipboard

Extensions

createCircleManager
Link copied to clipboard

Extension function to create a CircleManager instance.

fun AnnotationPlugin.createCircleManager(mapView: View, annotationConfig: AnnotationConfig?): CircleManager
createFillManager
Link copied to clipboard

Extension function to create a FillManager instance.

fun AnnotationPlugin.createFillManager(mapView: View, annotationConfig: AnnotationConfig?): FillManager
createLineManager
Link copied to clipboard

Extension function to create a LineManager instance.

fun AnnotationPlugin.createLineManager(mapView: View, annotationConfig: AnnotationConfig?): LineManager
createSymbolManager
Link copied to clipboard

Extension function to create a SymbolManager instance.

fun AnnotationPlugin.createSymbolManager(mapView: View, annotationConfig: AnnotationConfig?): SymbolManager