AnnotationPluginImpl

class AnnotationPluginImpl : AnnotationPlugin

The impl class for AnnotationPlugin

Constructors

AnnotationPluginImpl
Link copied to clipboard
fun AnnotationPluginImpl()

Functions

cleanup
Link copied to clipboard
open override fun cleanup()

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

createAnnotationManager
Link copied to clipboard
open override fun createAnnotationManager(type: AnnotationType, annotationConfig: AnnotationConfig?): AnnotationManager<*, *, *, *, *, *, *>
open override fun createAnnotationManager(mapView: View, type: AnnotationType, annotationConfig: AnnotationConfig?): AnnotationManager<*, *, *, *, *, *, *>

Create an annotation manager.

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

Provides all map delegate instances.

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

Invoked when MapView's width and height have changed.

onStyleChanged
Link copied to clipboard
open override fun onStyleChanged(styleDelegate: StyleInterface)

Called when a new Style is loaded.

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

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.