AnnotationManager

Interface for annotationManager

Functions

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

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

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

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

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

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

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

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

create
Link copied to clipboard
abstract fun create(option: S): T

Create an annotation with the option

abstract fun create(options: List<S>): List<T>

Create some annotations with the options

delete
Link copied to clipboard
abstract fun delete(annotation: T)

Delete the annotation

abstract fun delete(annotations: List<T>)

Delete annotations in the list

deleteAll
Link copied to clipboard
abstract fun deleteAll()

Delete all the added annotations

enableDataDrivenProperty
Link copied to clipboard
abstract fun enableDataDrivenProperty(property: String)

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

onDestroy
Link copied to clipboard
abstract fun onDestroy()

Invoked when Mapview is destroyed

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

Invoked when MapView's width and height have changed.

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

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

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

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

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

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

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

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

selectAnnotation
Link copied to clipboard
abstract fun selectAnnotation(annotation: T)

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

update
Link copied to clipboard
abstract fun update(annotation: T)

Update the annotation

abstract fun update(annotations: List<T>)

Update annotations in the list

Properties

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

The added annotations

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

The Added clickListeners

delegateProvider
Link copied to clipboard
abstract val delegateProvider: MapDelegateProvider

The delegateProvider

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

The added dragListensers

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

The added interactionListener

longClickListeners
Link copied to clipboard
abstract val longClickListeners: MutableList<V>

The added longClickListeners

Inheritors

AnnotationManagerImpl
Link copied to clipboard