AnnotationManager

Functions

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

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

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

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

Link copied to clipboard

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

Link copied to clipboard

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

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

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

Delete the annotation

abstract fun delete(annotations: List<T>)

Delete annotations in the list

Link copied to clipboard
abstract fun deleteAll()

Delete all the added annotations

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

Link copied to clipboard
abstract fun onDestroy()

Invoked when Mapview is destroyed

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

Invoked when MapView's width and height have changed.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

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.

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

Update the annotation

abstract fun update(annotations: List<T>)

Update annotations in the list

Properties

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

The added annotations

Link copied to clipboard

The Added clickListeners

Link copied to clipboard

The delegateProvider

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

The added dragListensers

Link copied to clipboard

The added interactionListener

Link copied to clipboard

The added longClickListeners

Inheritors

Link copied to clipboard