Polygon Annotation Manager
class PolygonAnnotationManager(delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig?) : AnnotationManagerImpl<Polygon, PolygonAnnotation, PolygonAnnotationOptions, OnPolygonAnnotationDragListener, OnPolygonAnnotationClickListener, OnPolygonAnnotationLongClickListener, OnPolygonAnnotationInteractionListener, FillLayer>
Content copied to clipboard
The polygonAnnotation manager allows to add polygonAnnotations to a map.
Constructors
PolygonAnnotationManager
Link copied to clipboard
fun PolygonAnnotationManager(delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig? = null)
Content copied to clipboard
Types
Functions
add Click Listener
Link copied to clipboard
add Drag Listener
Link copied to clipboard
add Interaction Listener
Link copied to clipboard
open fun addInteractionListener(i: OnPolygonAnnotationInteractionListener): Boolean
Content copied to clipboard
add Long Click Listener
Link copied to clipboard
open fun addLongClickListener(v: OnPolygonAnnotationLongClickListener): Boolean
Content copied to clipboard
create
Link copied to clipboard
fun create(featureCollection: FeatureCollection): List<PolygonAnnotation>
Content copied to clipboard
Create a list of polygonAnnotations on the map.
open override fun create(option: PolygonAnnotationOptions): PolygonAnnotation
Content copied to clipboard
Create an annotation with the option
open override fun create(options: List<PolygonAnnotationOptions>): List<PolygonAnnotation>
Content copied to clipboard
Create some annotations with the options
delete
Link copied to clipboard
Delete the annotation
Delete annotations in the list
enable Data Driven Property
Link copied to clipboard
Enable a data-driven property
get Annotation Id Key
Link copied to clipboard
Get the key of the id of the annotation.
on Size Changed
Link copied to clipboard
Invoked when MapView's width and height have changed.
query Map For Features
Link copied to clipboard
fun queryMapForFeatures(screenCoordinate: ScreenCoordinate): PolygonAnnotation?
Content copied to clipboard
Query the rendered annotation around the point
remove Click Listener
Link copied to clipboard
open fun removeClickListener(u: OnPolygonAnnotationClickListener): Boolean
Content copied to clipboard
remove Drag Listener
Link copied to clipboard
remove Interaction Listener
Link copied to clipboard
open fun removeInteractionListener(i: OnPolygonAnnotationInteractionListener): Boolean
Content copied to clipboard
remove Long Click Listener
Link copied to clipboard
open fun removeLongClickListener(v: OnPolygonAnnotationLongClickListener): Boolean
Content copied to clipboard
select Annotation
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.
update
Link copied to clipboard
Update the annotation
Update annotations in the list
Properties
annotations
Link copied to clipboard
clickListeners
Link copied to clipboard
open override val clickListeners: MutableList<OnPolygonAnnotationClickListener>
Content copied to clipboard
delegateProvider
Link copied to clipboard
dragListeners
Link copied to clipboard
open override val dragListeners: MutableList<OnPolygonAnnotationDragListener>
Content copied to clipboard
fillAntialias
Link copied to clipboard
fillTranslate
Link copied to clipboard
fillTranslateAnchor
Link copied to clipboard
interactionListener
Link copied to clipboard
open override val interactionListener: MutableList<OnPolygonAnnotationInteractionListener>
Content copied to clipboard
layerFilter
Link copied to clipboard
longClickListeners
Link copied to clipboard
open override val longClickListeners: MutableList<OnPolygonAnnotationLongClickListener>
Content copied to clipboard