Point Annotation
Class for PointAnnotation
Constructors
Types
Functions
Properties
The iconAnchor property
Part of the icon placed closest to the anchor.
The iconColor property in Int The color of the icon. This can only be used with sdf icons.
The iconColor property in String
The color of the icon. This can only be used with sdf icons.
The iconHaloBlur property
Fade out the halo towards the outside.
The iconHaloColor property in Int The color of the icon's halo. Icon halos can only be used with SDF icons.
The iconHaloColor property in String
The color of the icon's halo. Icon halos can only be used with SDF icons.
The iconHaloWidth property
Distance of halo to the icon outline.
The bitmap image for this Symbol
Will not take effect if iconImage has been set.
The iconOffset property
Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of {@link PropertyFactory#iconSize} to obtain the final offset in density-independent pixels. When combined with {@link PropertyFactory#iconRotate} the offset will be as if the rotated direction was up.
The iconOpacity property
The opacity at which the icon will be drawn.
The iconRotate property
Rotates the icon clockwise.
The Point of the pointAnnotation, which represents the location of the pointAnnotation on the map
To update the pointAnnotation on the map use {@link PointAnnotationManager#update(Annotation)}.
The symbolSortKey property
Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When {@link PropertyFactory#iconAllowOverlap} or {@link PropertyFactory#textAllowOverlap} is false
, features with a lower sort key will have priority during placement. When {@link PropertyFactory#iconAllowOverlap} or {@link PropertyFactory#textAllowOverlap} is set to true
, features with a higher sort key will overlap over features with a lower sort key.
The textAnchor property
Part of the text placed closest to the anchor.
The textColor property in Int The color with which the text will be drawn.
The textColor property in String
The color with which the text will be drawn.
The textHaloBlur property
The halo's fadeout distance towards the outside.
The textHaloColor property in Int The color of the text's halo, which helps it stand out from backgrounds.
The textHaloColor property in String
The color of the text's halo, which helps it stand out from backgrounds.
The textHaloWidth property
Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.
The textJustify property
Text justification options.
The textLetterSpacing property
Text tracking amount.
The textMaxWidth property
The maximum line width for text wrapping.
The textOffset property
Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.
The textOpacity property
The opacity at which the text will be drawn.
The textRadialOffset property
Radial offset of text, in the direction of the symbol's anchor. Useful in combination with {@link PropertyFactory#textVariableAnchor}, which defaults to using the two-dimensional {@link PropertyFactory#textOffset} if present.
The textRotate property
Rotates the text clockwise.
The textTransform property
Specifies how to capitalize text, similar to the CSS {@link PropertyFactory#textTransform} property.