Point Annotation Manager
class PointAnnotationManager(delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig?) : AnnotationManagerImpl<Point, PointAnnotation, PointAnnotationOptions, OnPointAnnotationDragListener, OnPointAnnotationClickListener, OnPointAnnotationLongClickListener, OnPointAnnotationInteractionListener, SymbolLayer>
Content copied to clipboard
The pointAnnotation manager allows to add pointAnnotations to a map.
Constructors
PointAnnotationManager
Link copied to clipboard
fun PointAnnotationManager(delegateProvider: MapDelegateProvider, annotationConfig: AnnotationConfig? = null)
Content copied to clipboard
Types
Functions
addClickListener
Link copied to clipboard
addDragListener
Link copied to clipboard
addInteractionListener
Link copied to clipboard
open fun addInteractionListener(i: OnPointAnnotationInteractionListener): Boolean
Content copied to clipboard
addLongClickListener
Link copied to clipboard
open fun addLongClickListener(v: OnPointAnnotationLongClickListener): Boolean
Content copied to clipboard
create
Link copied to clipboard
open override fun create(option: PointAnnotationOptions): PointAnnotation
Content copied to clipboard
open override fun create(options: List<PointAnnotationOptions>): List<PointAnnotation>
Content copied to clipboard
delete
Link copied to clipboard
enableDataDrivenProperty
Link copied to clipboard
getAnnotationIdKey
Link copied to clipboard
onSizeChanged
Link copied to clipboard
queryMapForFeatures
Link copied to clipboard
fun queryMapForFeatures(screenCoordinate: ScreenCoordinate): PointAnnotation?
Content copied to clipboard
removeClickListener
Link copied to clipboard
removeDragListener
Link copied to clipboard
removeInteractionListener
Link copied to clipboard
open fun removeInteractionListener(i: OnPointAnnotationInteractionListener): Boolean
Content copied to clipboard
removeLongClickListener
Link copied to clipboard
open fun removeLongClickListener(v: OnPointAnnotationLongClickListener): Boolean
Content copied to clipboard
selectAnnotation
Link copied to clipboard
update
Link copied to clipboard
Properties
annotations
Link copied to clipboard
The added annotations
clickListeners
Link copied to clipboard
The Added clickListeners
delegateProvider
Link copied to clipboard
The delegateProvider
dragListeners
Link copied to clipboard
The added dragListeners
iconAllowOverlap
Link copied to clipboard
The IconAllowOverlap propertyIf true, the icon will be visible even if it collides with other previously drawn symbols.
iconIgnorePlacement
Link copied to clipboard
The IconIgnorePlacement propertyIf true, other symbols can be visible even if they collide with the icon.
iconKeepUpright
Link copied to clipboard
The IconKeepUpright propertyIf true, the icon may be flipped to prevent it from being rendered upside-down.
iconOptional
Link copied to clipboard
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
The IconPadding propertySize of the additional area around the icon bounding box used for detecting symbol collisions.
iconPitchAlignment
Link copied to clipboard
The IconPitchAlignment propertyOrientation of icon when map is pitched.
iconRotationAlignment
Link copied to clipboard
The IconRotationAlignment propertyIn combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of icons.
iconTextFit
Link copied to clipboard
The IconTextFit propertyScales the icon to fit around the associated text.
iconTextFitPadding
Link copied to clipboard
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
The IconTranslate propertyDistance that the icon's anchor is moved from its original placement.
iconTranslateAnchor
Link copied to clipboard
The IconTranslateAnchor propertyControls the frame of reference for {@link PropertyFactory#iconTranslate}.
interactionListener
Link copied to clipboard
The added interactionListener
layerFilter
Link copied to clipboard
The filter on the managed pointAnnotations.
longClickListeners
Link copied to clipboard
The added longClickListeners
symbolAvoidEdges
Link copied to clipboard
The SymbolAvoidEdges propertyIf true, the symbols will not cross tile edges to avoid mutual collisions.
symbolPlacement
Link copied to clipboard
The SymbolPlacement propertyLabel placement relative to its geometry.
symbolSpacing
Link copied to clipboard
The SymbolSpacing propertyDistance between two symbol anchors.
symbolZOrder
Link copied to clipboard
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
The TextAllowOverlap propertyIf true, the text will be visible even if it collides with other previously drawn symbols.
textIgnorePlacement
Link copied to clipboard
The TextIgnorePlacement propertyIf true, other symbols can be visible even if they collide with the text.
textKeepUpright
Link copied to clipboard
The TextKeepUpright propertyIf true, the text may be flipped vertically to prevent it from being rendered upside-down.
textLineHeight
Link copied to clipboard
The TextLineHeight propertyText leading value for multi-line text.
textMaxAngle
Link copied to clipboard
The TextMaxAngle propertyMaximum angle change between adjacent characters.
textOptional
Link copied to clipboard
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
The TextPadding propertySize of the additional area around the text bounding box used for detecting symbol collisions.
textPitchAlignment
Link copied to clipboard
The TextPitchAlignment propertyOrientation of text when map is pitched.
textRotationAlignment
Link copied to clipboard
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
The TextTranslate propertyDistance that the text's anchor is moved from its original placement.
textTranslateAnchor
Link copied to clipboard
The TextTranslateAnchor propertyControls the frame of reference for {@link PropertyFactory#textTranslate}.
textVariableAnchor
Link copied to clipboard
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
The TextWritingMode propertyThe property allows control over a symbol's orientation.