AnnotationManager

Interface for annotationManager

Functions

addClickListener
Link copied to clipboard

Add a callback to be invoked when a symbol 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
addLongClickListener
Link copied to clipboard

Add a callback to be invoked when a symbol 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 https://docs.mapbox.com/android/maps/guides/data-driven-styling/ 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 symbol 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
removeLongClickListener
Link copied to clipboard

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

open fun removeLongClickListener(v: V): Boolean
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: MutableMap<Long, 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>
longClickListeners
Link copied to clipboard

The added longClickListeners

abstract val longClickListeners: MutableList<V>

Inheritors

AnnotationManagerImpl
Link copied to clipboard