AnnotationPlugin

interface AnnotationPlugin : MapPlugin, MapSizePlugin, MapStyleObserverPlugin

Plugin interface for the annotation.

Functions

cleanup
Link copied to clipboard
open fun cleanup()
Called when the map is destroyed.
createAnnotationManager
Link copied to clipboard
abstract fun createAnnotationManager(type: AnnotationType, annotationConfig: AnnotationConfig?): AnnotationManager<*, *, *, *, *, *, *>
Create an annotation manager.
abstract fun createAnnotationManager(mapView: View, type: AnnotationType, annotationConfig: AnnotationConfig?): AnnotationManager<*, *, *, *, *, *, *>
Create an annotation manager.
initialize
Link copied to clipboard
open fun initialize()
Called when the plugin is first added to the map.
onDelegateProvider
Link copied to clipboard
open fun onDelegateProvider(delegateProvider: MapDelegateProvider)
Provides all map delegate instances.
onSizeChanged
Link copied to clipboard
open fun onSizeChanged(width: Int, height: Int)
Invoked when MapView's width and height have changed.
onStyleChanged
Link copied to clipboard
abstract fun onStyleChanged(styleDelegate: StyleInterface)
Called when a new Style is loaded.
removeAnnotationManager
Link copied to clipboard
abstract fun removeAnnotationManager(annotationManager: AnnotationManager<*, *, *, *, *, *, *>)
Removes an annotation manager, this will remove the underlying layer and source from the style.

Inheritors

AnnotationPluginImpl
Link copied to clipboard

Extensions

createCircleAnnotationManager
Link copied to clipboard
fun AnnotationPlugin.createCircleAnnotationManager(mapView: View, annotationConfig: AnnotationConfig? = null): CircleAnnotationManager
Extension function to create a CircleAnnotationManager instance.
fun AnnotationPlugin.createCircleAnnotationManager(annotationConfig: AnnotationConfig? = null): CircleAnnotationManager
Extension function to create a CircleAnnotationManager instance.
createPointAnnotationManager
Link copied to clipboard
fun AnnotationPlugin.createPointAnnotationManager(mapView: View, annotationConfig: AnnotationConfig? = null): PointAnnotationManager
Extension function to create a PointAnnotationManager instance.
fun AnnotationPlugin.createPointAnnotationManager(annotationConfig: AnnotationConfig? = null): PointAnnotationManager
Extension function to create a PointAnnotationManager instance.
createPolygonAnnotationManager
Link copied to clipboard
fun AnnotationPlugin.createPolygonAnnotationManager(mapView: View, annotationConfig: AnnotationConfig? = null): PolygonAnnotationManager
Extension function to create a PolygonAnnotationManager instance.
fun AnnotationPlugin.createPolygonAnnotationManager(annotationConfig: AnnotationConfig? = null): PolygonAnnotationManager
Extension function to create a PolygonAnnotationManager instance.
createPolylineAnnotationManager
Link copied to clipboard
fun AnnotationPlugin.createPolylineAnnotationManager(mapView: View, annotationConfig: AnnotationConfig? = null): PolylineAnnotationManager
Extension function to create a PolylineAnnotationManager instance.
fun AnnotationPlugin.createPolylineAnnotationManager(annotationConfig: AnnotationConfig? = null): PolylineAnnotationManager
Extension function to create a PolylineAnnotationManager instance.