AnnotationManagerImpl

Base class for annotation managers

abstract class AnnotationManagerImpl<G : Geometry, T : Annotation<G>, S : AnnotationOptions<G, T>, D : OnAnnotationDragListener<T>, U : OnAnnotationClickListener<T>, V : OnAnnotationLongClickListener<T>, I : OnAnnotationInteractionListener<T>, L : Layer>(mapView: View, delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig?) : AnnotationManager<G, T, S, D, U, V, I>

Constructors

AnnotationManagerImpl
Link copied to clipboard
fun AnnotationManagerImpl(mapView: View, delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig?)

Types

Companion
Link copied to clipboard

Static variables and methods.

object Companion
MapClick
Link copied to clipboard

Class handle the map click event

inner class MapClick : OnMapClickListener
MapLongClick
Link copied to clipboard

Class handle the map long click event

inner class MapLongClick : OnMapLongClickListener
MapMove
Link copied to clipboard

Class handle the map move event

inner class MapMove : OnMoveListener

Functions

addAnnotation
Link copied to clipboard

Add an annotation to MapView.

fun addAnnotation(annotation: T)
addClickListener
Link copied to clipboard
open override fun addClickListener(u: U): Boolean
addDragListener
Link copied to clipboard
open override fun addDragListener(d: D): Boolean
addInteractionListener
Link copied to clipboard
open override fun addInteractionListener(i: I): Boolean
addLongClickListener
Link copied to clipboard
open override fun addLongClickListener(v: V): Boolean
create
Link copied to clipboard

Create an annotation with the option

open override fun create(option: S): T

Create some annotations with the options

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

Delete the annotation

open override fun delete(annotation: T)

Delete annotations in the list

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

Delete all the added annotations

open override fun deleteAll()
enableDataDrivenProperty
Link copied to clipboard

Enable a data-driven property

open override fun enableDataDrivenProperty(property: String)
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getAnnotationIdKey
Link copied to clipboard

Get the key of the id of the annotation.

abstract fun getAnnotationIdKey(): String
hashCode
Link copied to clipboard
open override fun hashCode(): Int
onDestroy
Link copied to clipboard

Invoked when Mapview or Annotation manager is destroyed.

open override fun onDestroy()
onSizeChanged
Link copied to clipboard

Invoked when MapView's width and height have changed.

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

Query the rendered annotation around the point

fun queryMapForFeatures(point: Point): T?
fun queryMapForFeatures(screenCoordinate: ScreenCoordinate): T?
removeClickListener
Link copied to clipboard
open override fun removeClickListener(u: U): Boolean
removeDragListener
Link copied to clipboard
open override fun removeDragListener(d: D): Boolean
removeInteractionListener
Link copied to clipboard
open override fun removeInteractionListener(i: I): Boolean
removeLongClickListener
Link copied to clipboard
open override 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.

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

Update the annotation

open override fun update(annotation: T)

Update annotations in the list

open override fun update(annotations: List<T>)

Properties

annotations
Link copied to clipboard

The added annotations

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

The Added clickListeners

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

The delegateProvider

override val delegateProvider: MapDelegateProvider
dragListeners
Link copied to clipboard

The added dragListeners

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

The added interactionListener

open override val interactionListener: MutableList<I>
layerFilter
Link copied to clipboard

Set filter on the managed annotations.

abstract var layerFilter: Expression?
longClickListeners
Link copied to clipboard

The added longClickListeners

open override val longClickListeners: MutableList<V>

Inheritors

CircleAnnotationManager
Link copied to clipboard
PointAnnotationManager
Link copied to clipboard
PolygonAnnotationManager
Link copied to clipboard
PolylineAnnotationManager
Link copied to clipboard