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: StyleInterface)
removeAnnotationManager
Link copied to clipboard

Removes an annotation manager, this will remove the underlying layer and source from the style. A removed annotation manager will not be able to reuse anymore, users need to create new annotation manger to add annotations.

abstract fun removeAnnotationManager(annotationManager: AnnotationManager<*, *, *, *, *, *, *>)
toString
Link copied to clipboard
open override fun toString(): String

Inheritors

AnnotationPluginImpl
Link copied to clipboard

Extensions

createCircleAnnotationManager
Link copied to clipboard

Extension function to create a CircleAnnotationManager instance.

fun AnnotationPlugin.createCircleAnnotationManager(mapView: View, annotationConfig: AnnotationConfig?): CircleAnnotationManager
createPointAnnotationManager
Link copied to clipboard

Extension function to create a PointAnnotationManager instance.

fun AnnotationPlugin.createPointAnnotationManager(mapView: View, annotationConfig: AnnotationConfig?): PointAnnotationManager
createPolygonAnnotationManager
Link copied to clipboard

Extension function to create a PolygonAnnotationManager instance.

fun AnnotationPlugin.createPolygonAnnotationManager(mapView: View, annotationConfig: AnnotationConfig?): PolygonAnnotationManager
createPolylineAnnotationManager
Link copied to clipboard

Extension function to create a PolylineAnnotationManager instance.

fun AnnotationPlugin.createPolylineAnnotationManager(mapView: View, annotationConfig: AnnotationConfig?): PolylineAnnotationManager