PointAnnotationManager

Constructors

PointAnnotationManager
Link copied to clipboard
fun PointAnnotationManager(delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig? = null)

Types

Companion
Link copied to clipboard
object Companion

Static variables and methods.

Functions

addClickListener
Link copied to clipboard
open fun addClickListener(u: OnPointAnnotationClickListener): Boolean
addDragListener
Link copied to clipboard
open fun addDragListener(d: OnPointAnnotationDragListener): Boolean
addInteractionListener
Link copied to clipboard
addLongClickListener
Link copied to clipboard
open fun addLongClickListener(v: OnPointAnnotationLongClickListener): Boolean
create
Link copied to clipboard
fun create(featureCollection: FeatureCollection): List<PointAnnotation>
fun create(json: String): List<PointAnnotation>

Create a list of pointAnnotations on the map.

open override fun create(option: PointAnnotationOptions): PointAnnotation

Create an annotation with the option

open override fun create(options: List<PointAnnotationOptions>): List<PointAnnotation>

Create some annotations with the options

delete
Link copied to clipboard
open override fun delete(annotation: PointAnnotation)

Delete the annotation

open override fun delete(annotations: List<PointAnnotation>)

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

getAnnotationIdKey
Link copied to clipboard
open override fun getAnnotationIdKey(): String

Get the key of the id of the annotation.

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): PointAnnotation?
fun queryMapForFeatures(screenCoordinate: ScreenCoordinate): PointAnnotation?

Query the rendered annotation around the point

removeClickListener
Link copied to clipboard
open fun removeClickListener(u: OnPointAnnotationClickListener): Boolean
removeDragListener
Link copied to clipboard
open fun removeDragListener(d: OnPointAnnotationDragListener): Boolean
removeInteractionListener
Link copied to clipboard
removeLongClickListener
Link copied to clipboard
open fun removeLongClickListener(v: OnPointAnnotationLongClickListener): Boolean
selectAnnotation
Link copied to clipboard
open override fun selectAnnotation(annotation: PointAnnotation)

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
open override fun update(annotation: PointAnnotation)

Update the annotation

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

Update annotations in the list

Properties

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

The added annotations

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

The Added clickListeners

delegateProvider
Link copied to clipboard
override val delegateProvider: MapDelegateProvider

The delegateProvider

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

The added dragListeners

iconAllowOverlap
Link copied to clipboard
var iconAllowOverlap: Boolean?

The IconAllowOverlap property

iconIgnorePlacement
Link copied to clipboard
var iconIgnorePlacement: Boolean?

The IconIgnorePlacement property

iconKeepUpright
Link copied to clipboard
var iconKeepUpright: Boolean?

The IconKeepUpright property

iconOptional
Link copied to clipboard
var iconOptional: Boolean?

The IconOptional property

iconPadding
Link copied to clipboard
var iconPadding: Double?

The IconPadding property

iconPitchAlignment
Link copied to clipboard
var iconPitchAlignment: IconPitchAlignment?

The IconPitchAlignment property

iconRotationAlignment
Link copied to clipboard
var iconRotationAlignment: IconRotationAlignment?

The IconRotationAlignment property

iconTextFit
Link copied to clipboard
var iconTextFit: IconTextFit?

The IconTextFit property

iconTextFitPadding
Link copied to clipboard
var iconTextFitPadding: List<Double>?

The IconTextFitPadding property

iconTranslate
Link copied to clipboard
var iconTranslate: List<Double>?

The IconTranslate property

iconTranslateAnchor
Link copied to clipboard
var iconTranslateAnchor: IconTranslateAnchor?

The IconTranslateAnchor property

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

The added interactionListener

layerFilter
Link copied to clipboard
open override var layerFilter: Expression?

The filter on the managed pointAnnotations.

longClickListeners
Link copied to clipboard
open override val longClickListeners: MutableList<OnPointAnnotationLongClickListener>

The added longClickListeners

symbolAvoidEdges
Link copied to clipboard
var symbolAvoidEdges: Boolean?

The SymbolAvoidEdges property

symbolPlacement
Link copied to clipboard
var symbolPlacement: SymbolPlacement?

The SymbolPlacement property

symbolSpacing
Link copied to clipboard
var symbolSpacing: Double?

The SymbolSpacing property

symbolZOrder
Link copied to clipboard
var symbolZOrder: SymbolZOrder?

The SymbolZOrder property

textAllowOverlap
Link copied to clipboard
var textAllowOverlap: Boolean?

The TextAllowOverlap property

textFont
Link copied to clipboard
var textFont: List<String>?

The TextFont property

textIgnorePlacement
Link copied to clipboard
var textIgnorePlacement: Boolean?

The TextIgnorePlacement property

textKeepUpright
Link copied to clipboard
var textKeepUpright: Boolean?

The TextKeepUpright property

textLineHeight
Link copied to clipboard
var textLineHeight: Double?

The TextLineHeight property

textMaxAngle
Link copied to clipboard
var textMaxAngle: Double?

The TextMaxAngle property

textOptional
Link copied to clipboard
var textOptional: Boolean?

The TextOptional property

textPadding
Link copied to clipboard
var textPadding: Double?

The TextPadding property

textPitchAlignment
Link copied to clipboard
var textPitchAlignment: TextPitchAlignment?

The TextPitchAlignment property

textRotationAlignment
Link copied to clipboard
var textRotationAlignment: TextRotationAlignment?

The TextRotationAlignment property

textTranslate
Link copied to clipboard
var textTranslate: List<Double>?

The TextTranslate property

textTranslateAnchor
Link copied to clipboard
var textTranslateAnchor: TextTranslateAnchor?

The TextTranslateAnchor property

textVariableAnchor
Link copied to clipboard
var textVariableAnchor: List<String>?

The TextVariableAnchor property

textWritingMode
Link copied to clipboard
var textWritingMode: List<String>?

The TextWritingMode property