AnnotationManager

Interface for annotationManager

Functions

addClickListener
Link copied to clipboard

Add a callback to be invoked when a annotation has been clicked.

open fun addClickListener(u: U): Boolean
addDragListener
Link copied to clipboard

Add a callback to be invoked when an annotation is dragged.

open fun addDragListener(d: D): Boolean
addInteractionListener
Link copied to clipboard

Add a callback to be invoked when a annotation has been selected or deselected.

open fun addInteractionListener(i: I): Boolean
addLongClickListener
Link copied to clipboard

Add a callback to be invoked when a annotation has been long clicked.

open fun addLongClickListener(v: V): Boolean
create
Link copied to clipboard

Create an annotation with the option

abstract fun create(option: S): T

Create some annotations with the options

abstract fun create(options: List<S>): List<T>
delete
Link copied to clipboard

Delete the annotation

abstract fun delete(annotation: T)

Delete annotations in the list

abstract fun delete(annotations: List<T>)
deleteAll
Link copied to clipboard

Delete all the added annotations

abstract fun deleteAll()
enableDataDrivenProperty
Link copied to clipboard

Enable a data-driven property. Please visit The online documentation for more details about data-driven-styling

abstract fun enableDataDrivenProperty(property: String)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
onDestroy
Link copied to clipboard

Invoked when Mapview is destroyed

abstract fun onDestroy()
onSizeChanged
Link copied to clipboard

Invoked when MapView's width and height have changed.

abstract fun onSizeChanged(width: Int, height: Int)
removeClickListener
Link copied to clipboard

Remove a previously added callback that was to be invoked when annotation has been clicked.

open fun removeClickListener(u: U): Boolean
removeDragListener
Link copied to clipboard

Remove a previously added callback that was to be invoked when an annotation has been dragged.

open fun removeDragListener(d: D): Boolean
removeInteractionListener
Link copied to clipboard

Remove a previously added callback that was to be invoked when annotation has been selected or deselected.

open fun removeInteractionListener(i: I): Boolean
removeLongClickListener
Link copied to clipboard

Remove a previously added callback that was to be invoked when annotation has been long clicked.

open fun removeLongClickListener(v: V): Boolean
selectAnnotation
Link copied to clipboard

Toggles the annotation's selection state. If the annotation is deselected, it becomes selected. If the annotation is selected, it becomes deselected.

abstract fun selectAnnotation(annotation: T)
toString
Link copied to clipboard
open override fun toString(): String
update
Link copied to clipboard

Update the annotation

abstract fun update(annotation: T)

Update annotations in the list

abstract fun update(annotations: List<T>)

Properties

annotations
Link copied to clipboard

The added annotations

abstract val annotations: List<T>
clickListeners
Link copied to clipboard

The Added clickListeners

abstract val clickListeners: MutableList<U>
delegateProvider
Link copied to clipboard

The delegateProvider

abstract val delegateProvider: MapDelegateProvider
dragListeners
Link copied to clipboard

The added dragListensers

abstract val dragListeners: MutableList<D>
interactionListener
Link copied to clipboard

The added interactionListener

abstract val interactionListener: MutableList<I>
longClickListeners
Link copied to clipboard

The added longClickListeners

abstract val longClickListeners: MutableList<V>

Inheritors

AnnotationManagerImpl
Link copied to clipboard