Annotation Plugin
Plugin interface for the annotation.
Functions
Link copied to clipboard
abstract fun createAnnotationManager(type: AnnotationType, annotationConfig: AnnotationConfig?): AnnotationManager<*, *, *, *, *, *, *>
Create an annotation manager.
Link copied to clipboard
Called when the plugin is first added to the map.
Link copied to clipboard
Provides all map delegate instances.
Link copied to clipboard
Invoked when MapView's width and height have changed.
Link copied to clipboard
Called when a new Style is loaded.
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 manager to add annotations.
Extensions
Link copied to clipboard
fun AnnotationPlugin.createCircleAnnotationManager(annotationConfig: AnnotationConfig? = null): CircleAnnotationManager
Extension function to create a CircleAnnotationManager instance.
Link copied to clipboard
fun AnnotationPlugin.createPointAnnotationManager(annotationConfig: AnnotationConfig? = null): PointAnnotationManager
Extension function to create a PointAnnotationManager instance.
Link copied to clipboard
fun AnnotationPlugin.createPolygonAnnotationManager(annotationConfig: AnnotationConfig? = null): PolygonAnnotationManager
Extension function to create a PolygonAnnotationManager instance.
Link copied to clipboard
fun AnnotationPlugin.createPolylineAnnotationManager(annotationConfig: AnnotationConfig? = null): PolylineAnnotationManager
Extension function to create a PolylineAnnotationManager instance.