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
open fun addInteractionListener(i: OnPointAnnotationInteractionListener): Boolean
addLongClickListener
Link copied to clipboard
open fun addLongClickListener(v: OnPointAnnotationLongClickListener): Boolean
create
Link copied to clipboard
fun create(featureCollection: FeatureCollection): List<PointAnnotation>
Create a list of pointAnnotations on the map.
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
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getAnnotationIdKey
Link copied to clipboard
open override 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): PointAnnotation?
Query the rendered annotation around the point
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.
toString
Link copied to clipboard
open fun toString(): String
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: <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
iconAllowOverlap
Link copied to clipboard
var iconAllowOverlap: Boolean?
The IconAllowOverlap propertyIf true, the icon will be visible even if it collides with other previously drawn symbols.
iconIgnorePlacement
Link copied to clipboard
var iconIgnorePlacement: Boolean?
The IconIgnorePlacement propertyIf true, other symbols can be visible even if they collide with the icon.
iconKeepUpright
Link copied to clipboard
var iconKeepUpright: Boolean?
The IconKeepUpright propertyIf true, the icon may be flipped to prevent it from being rendered upside-down.
iconOptional
Link copied to clipboard
var iconOptional: Boolean?
The IconOptional propertyIf true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.
iconPadding
Link copied to clipboard
var iconPadding: Double?
The IconPadding propertySize of the additional area around the icon bounding box used for detecting symbol collisions.
iconPitchAlignment
Link copied to clipboard
var iconPitchAlignment: IconPitchAlignment?
The IconPitchAlignment propertyOrientation of icon when map is pitched.
iconRotationAlignment
Link copied to clipboard
var iconRotationAlignment: IconRotationAlignment?
The IconRotationAlignment propertyIn combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of icons.
iconTextFit
Link copied to clipboard
var iconTextFit: IconTextFit?
The IconTextFit propertyScales the icon to fit around the associated text.
iconTextFitPadding
Link copied to clipboard
var iconTextFitPadding: List<Double>?
The IconTextFitPadding propertySize of the additional area added to dimensions determined by {@link Property.ICON_TEXT_FIT}, in clockwise order: top, right, bottom, left.
iconTranslate
Link copied to clipboard
var iconTranslate: List<Double>?
The IconTranslate propertyDistance that the icon's anchor is moved from its original placement.
iconTranslateAnchor
Link copied to clipboard
var iconTranslateAnchor: IconTranslateAnchor?
The IconTranslateAnchor propertyControls the frame of reference for {@link PropertyFactory#iconTranslate}.
interactionListener
Link copied to clipboard
open override val interactionListener: <ERROR CLASS>
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: <ERROR CLASS>
The added longClickListeners
symbolAvoidEdges
Link copied to clipboard
var symbolAvoidEdges: Boolean?
The SymbolAvoidEdges propertyIf true, the symbols will not cross tile edges to avoid mutual collisions.
symbolPlacement
Link copied to clipboard
var symbolPlacement: SymbolPlacement?
The SymbolPlacement propertyLabel placement relative to its geometry.
symbolSpacing
Link copied to clipboard
var symbolSpacing: Double?
The SymbolSpacing propertyDistance between two symbol anchors.
symbolZOrder
Link copied to clipboard
var symbolZOrder: SymbolZOrder?
The SymbolZOrder propertyDetermines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport.
textAllowOverlap
Link copied to clipboard
var textAllowOverlap: Boolean?
The TextAllowOverlap propertyIf true, the text will be visible even if it collides with other previously drawn symbols.
textFont
Link copied to clipboard
var textFont: List<String>?
The TextFont propertyFont stack to use for displaying text.
textIgnorePlacement
Link copied to clipboard
var textIgnorePlacement: Boolean?
The TextIgnorePlacement propertyIf true, other symbols can be visible even if they collide with the text.
textKeepUpright
Link copied to clipboard
var textKeepUpright: Boolean?
The TextKeepUpright propertyIf true, the text may be flipped vertically to prevent it from being rendered upside-down.
textLineHeight
Link copied to clipboard
var textLineHeight: Double?
The TextLineHeight propertyText leading value for multi-line text.
textMaxAngle
Link copied to clipboard
var textMaxAngle: Double?
The TextMaxAngle propertyMaximum angle change between adjacent characters.
textOptional
Link copied to clipboard
var textOptional: Boolean?
The TextOptional propertyIf true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.
textPadding
Link copied to clipboard
var textPadding: Double?
The TextPadding propertySize of the additional area around the text bounding box used for detecting symbol collisions.
textPitchAlignment
Link copied to clipboard
var textPitchAlignment: TextPitchAlignment?
The TextPitchAlignment propertyOrientation of text when map is pitched.
textRotationAlignment
Link copied to clipboard
var textRotationAlignment: TextRotationAlignment?
The TextRotationAlignment propertyIn combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of the individual glyphs forming the text.
textTranslate
Link copied to clipboard
var textTranslate: List<Double>?
The TextTranslate propertyDistance that the text's anchor is moved from its original placement.
textTranslateAnchor
Link copied to clipboard
var textTranslateAnchor: TextTranslateAnchor?
The TextTranslateAnchor propertyControls the frame of reference for {@link PropertyFactory#textTranslate}.
textVariableAnchor
Link copied to clipboard
var textVariableAnchor: List<String>?
The TextVariableAnchor propertyTo increase the chance of placing high-priority labels on the map, you can provide an array of {@link Property.TEXT_ANCHOR} locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label.
textWritingMode
Link copied to clipboard
var textWritingMode: List<String>?
The TextWritingMode propertyThe property allows control over a symbol's orientation.