PointAnnotationGroupState

The state holder for PointAnnotationGroup properties.

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

If true, the icon will be visible even if it collides with other previously drawn symbols.

Link copied to clipboard

Part of the icon placed closest to the anchor.

Link copied to clipboard

The color of the icon. This can only be used with /help/troubleshooting/using-recolorable-images-in-mapbox-maps/.

Link copied to clipboard

Increase or reduce the saturation of the symbol icon.

Link copied to clipboard

Controls the intensity of light emitted on the source features. The unit of iconEmissiveStrength is in intensity.

Link copied to clipboard

Fade out the halo towards the outside. The unit of iconHaloBlur is in density-independent pixels.

Link copied to clipboard

The color of the icon's halo. Icon halos can only be used with /help/troubleshooting/using-recolorable-images-in-mapbox-maps/.

Link copied to clipboard

Distance of halo to the icon outline. The unit of iconHaloWidth is in density-independent pixels.

Link copied to clipboard

If true, other symbols can be visible even if they collide with the icon.

Link copied to clipboard

Name of image in sprite to use for drawing an image background.

Link copied to clipboard

Controls the transition progress between the image variants of icon-image. Zero means the first variant is used, one is the second, and in between they are blended together.

Link copied to clipboard

If true, the icon may be flipped to prevent it from being rendered upside-down.

Link copied to clipboard

The opacity at which the icon will be drawn in case of being depth occluded. Absent value means full occlusion against terrain only.

Link copied to clipboard

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.

Link copied to clipboard

The opacity at which the icon will be drawn.

Link copied to clipboard

If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.

Link copied to clipboard

Size of the additional area around the icon bounding box used for detecting symbol collisions. The unit of iconPadding is in density-independent pixels.

Link copied to clipboard

Orientation of icon when map is pitched.

Link copied to clipboard

Rotates the icon clockwise. The unit of iconRotate is in degrees.

Link copied to clipboard

In combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of icons.

Link copied to clipboard

Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by {@link PropertyFactory#iconSize}. 1 is the original size; 3 triples the size of the image. The unit of iconSize is in factor of the original icon size.

Link copied to clipboard

Scales the icon to fit around the associated text.

Link copied to clipboard

Size of the additional area added to dimensions determined by {@link Property.ICON_TEXT_FIT}, in clockwise order: top, right, bottom, left. The unit of iconTextFitPadding is in density-independent pixels.

Link copied to clipboard

Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up. The unit of iconTranslate is in density-independent pixels.

Link copied to clipboard

Controls the frame of reference for {@link PropertyFactory#iconTranslate}.

Link copied to clipboard

If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.

Link copied to clipboard

Selects the base of symbol-elevation.

Link copied to clipboard

Label placement relative to its geometry.

Link copied to clipboard

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.

Link copied to clipboard

Distance between two symbol anchors. The unit of symbolSpacing is in density-independent pixels.

Link copied to clipboard

Position symbol on buildings (both fill extrusions and models) rooftops. In order to have minimal impact on performance, this is supported only when {@link PropertyFactory#fillExtrusionHeight} is not zoom-dependent and remains unchanged. For fading in buildings when zooming in, fill-extrusion-vertical-scale should be used and symbols would raise with building rooftops. Symbols are sorted by elevation, except in cases when viewport-y sorting or {@link PropertyFactory#symbolSortKey} are applied.

Link copied to clipboard

Specifies an uniform elevation from the ground, in meters.

Link copied to clipboard

Determines 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. To control the order and prioritization of symbols otherwise, use {@link PropertyFactory#symbolSortKey}.

Link copied to clipboard

If true, the text will be visible even if it collides with other previously drawn symbols.

Link copied to clipboard

Part of the text placed closest to the anchor.

Link copied to clipboard

The color with which the text will be drawn.

Link copied to clipboard

Controls the intensity of light emitted on the source features. The unit of textEmissiveStrength is in intensity.

Link copied to clipboard

Value to use for a text label. If a plain string is provided, it will be treated as a formatted with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.

Link copied to clipboard

Font stack to use for displaying text.

Link copied to clipboard

The halo's fadeout distance towards the outside. The unit of textHaloBlur is in density-independent pixels.

Link copied to clipboard

The color of the text's halo, which helps it stand out from backgrounds.

Link copied to clipboard

Distance of halo to the font outline. Max text halo width is 1/4 of the font-size. The unit of textHaloWidth is in density-independent pixels.

Link copied to clipboard

If true, other symbols can be visible even if they collide with the text.

Link copied to clipboard

Text justification options.

Link copied to clipboard

If true, the text may be flipped vertically to prevent it from being rendered upside-down.

Link copied to clipboard

Text tracking amount. The unit of textLetterSpacing is in ems.

Link copied to clipboard

Text leading value for multi-line text. The unit of textLineHeight is in ems.

Link copied to clipboard

Maximum angle change between adjacent characters. The unit of textMaxAngle is in degrees.

Link copied to clipboard

The maximum line width for text wrapping. The unit of textMaxWidth is in ems.

Link copied to clipboard

The opacity at which the text will be drawn in case of being depth occluded. Absent value means full occlusion against terrain only.

Link copied to clipboard

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 unit of textOffset is in ems.

Link copied to clipboard

The opacity at which the text will be drawn.

Link copied to clipboard

If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.

Link copied to clipboard

Size of the additional area around the text bounding box used for detecting symbol collisions. The unit of textPadding is in density-independent pixels.

Link copied to clipboard

Orientation of text when map is pitched.

Link copied to clipboard

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 unit of textRadialOffset is in ems.

Link copied to clipboard

Rotates the text clockwise. The unit of textRotate is in degrees.

Link copied to clipboard

In combination with {@link Property.SYMBOL_PLACEMENT}, determines the rotation behavior of the individual glyphs forming the text.

Link copied to clipboard

Font size. The unit of textSize is in density-independent pixels.

Link copied to clipboard

Specifies how to capitalize text, similar to the CSS {@link PropertyFactory#textTransform} property.

Link copied to clipboard

Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up. The unit of textTranslate is in density-independent pixels.

Link copied to clipboard

Controls the frame of reference for {@link PropertyFactory#textTranslate}.

Link copied to clipboard

To 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. Use text-justify: auto to choose justification based on anchor position. To apply an offset, use the {@link PropertyFactory#textRadialOffset} or the two-dimensional {@link PropertyFactory#textOffset}.

Link copied to clipboard

The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. For symbol with point placement, the order of elements in an array define priority order for the placement of an orientation variant. For symbol with line placement, the default text writing mode is either 'horizontal', 'vertical' or 'vertical', 'horizontal', the order doesn't affect the placement.