AnnotationManagerImpl

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>(delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig?) : AnnotationManager<G, T, S, D, U, V, I>

Base class for annotation managers

Constructors

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

Types

MapClick
Link copied to clipboard
inner class MapClick : OnMapClickListener
Class handle the map click event
MapLongClick
Link copied to clipboard
inner class MapLongClick : OnMapLongClickListener
Class handle the map long click event
MapMove
Link copied to clipboard
inner class MapMove : OnMoveListener
Class handle the map move event

Functions

addClickListener
Link copied to clipboard
open fun addClickListener(u: U): Boolean
addDragListener
Link copied to clipboard
open fun addDragListener(d: D): Boolean
addInteractionListener
Link copied to clipboard
open fun addInteractionListener(i: I): Boolean
addLongClickListener
Link copied to clipboard
open fun addLongClickListener(v: V): Boolean
create
Link copied to clipboard
open override fun create(option: S): T
Create an annotation with the option
open override fun create(options: List<S>): List<T>
Create some annotations with the options
delete
Link copied to clipboard
open override fun delete(annotation: T)
Delete the annotation
open override fun delete(annotations: List<T>)
Delete annotations in the list
deleteAll
Link copied to clipboard
open override fun deleteAll()
Delete all the added annotations
enableDataDrivenProperty
Link copied to clipboard
open override fun enableDataDrivenProperty(property: String)
Enable a data-driven property
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getAnnotationIdKey
Link copied to clipboard
abstract fun getAnnotationIdKey(): String
Get the key of the id of the annotation.
hashCode
Link copied to clipboard
open fun hashCode(): Int
onDestroy
Link copied to clipboard
open override fun onDestroy()
Invoked when Mapview or Annotation manager is destroyed.
onSizeChanged
Link copied to clipboard
open override fun onSizeChanged(width: Int, height: Int)
Invoked when MapView's width and height have changed.
queryMapForFeatures
Link copied to clipboard
fun queryMapForFeatures(point: Point): T?
Query the rendered annotation around the point
fun queryMapForFeatures(screenCoordinate: ScreenCoordinate): T?
Query the rendered annotation around the point
removeClickListener
Link copied to clipboard
open fun removeClickListener(u: U): Boolean
removeDragListener
Link copied to clipboard
open fun removeDragListener(d: D): Boolean
removeInteractionListener
Link copied to clipboard
open fun removeInteractionListener(i: I): Boolean
removeLongClickListener
Link copied to clipboard
open fun removeLongClickListener(v: V): Boolean
selectAnnotation
Link copied to clipboard
open override fun selectAnnotation(annotation: T)
Toggles the annotation's selection state.
toString
Link copied to clipboard
open fun toString(): String
update
Link copied to clipboard
open override fun update(annotation: T)
Update the annotation
open override fun update(annotations: List<T>)
Update annotations in the list

Properties

annotations
Link copied to clipboard
open override val annotations: List<T>
The added annotations
clickListeners
Link copied to clipboard
open override val clickListeners: <ERROR CLASS>
The Added clickListeners
delegateProvider
Link copied to clipboard
override val delegateProvider: MapDelegateProvider
The delegateProvider
dragListeners
Link copied to clipboard
open override val dragListeners: <ERROR CLASS>
The added dragListeners
interactionListener
Link copied to clipboard
open override val interactionListener: <ERROR CLASS>
The added interactionListener
layerFilter
Link copied to clipboard
abstract var layerFilter: Expression?
Set filter on the managed annotations.
longClickListeners
Link copied to clipboard
open override val longClickListeners: <ERROR CLASS>
The added longClickListeners

Inheritors

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