PolygonAnnotationManager

Constructors

PolygonAnnotationManager
Link copied to clipboard
fun PolygonAnnotationManager(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: OnPolygonAnnotationClickListener): Boolean
addDragListener
Link copied to clipboard
open fun addDragListener(d: OnPolygonAnnotationDragListener): Boolean
addInteractionListener
Link copied to clipboard
addLongClickListener
Link copied to clipboard
open fun addLongClickListener(v: OnPolygonAnnotationLongClickListener): Boolean
create
Link copied to clipboard
fun create(featureCollection: FeatureCollection): List<PolygonAnnotation>
fun create(json: String): List<PolygonAnnotation>

Create a list of polygonAnnotations on the map.

open override fun create(option: PolygonAnnotationOptions): PolygonAnnotation

Create an annotation with the option

open override fun create(options: List<PolygonAnnotationOptions>): List<PolygonAnnotation>

Create some annotations with the options

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

Delete the annotation

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

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

Query the rendered annotation around the point

removeClickListener
Link copied to clipboard
open fun removeClickListener(u: OnPolygonAnnotationClickListener): Boolean
removeDragListener
Link copied to clipboard
open fun removeDragListener(d: OnPolygonAnnotationDragListener): Boolean
removeInteractionListener
Link copied to clipboard
removeLongClickListener
Link copied to clipboard
selectAnnotation
Link copied to clipboard
open override fun selectAnnotation(annotation: PolygonAnnotation)

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: PolygonAnnotation)

Update the annotation

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

Update annotations in the list

Properties

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

The added annotations

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

The Added clickListeners

delegateProvider
Link copied to clipboard
override val delegateProvider: MapDelegateProvider

The delegateProvider

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

The added dragListeners

fillAntialias
Link copied to clipboard
var fillAntialias: Boolean?

The FillAntialias property

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

The FillTranslate property

fillTranslateAnchor
Link copied to clipboard
var fillTranslateAnchor: FillTranslateAnchor?

The FillTranslateAnchor property

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

The added interactionListener

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

The filter on the managed polygonAnnotations.

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

The added longClickListeners