PointAnnotationManager

An instance of PointAnnotationManager is responsible for a collection of PointAnnotations.

  • The collection of PointAnnotations being managed

  • Synchronizes the backing source and layer with the current annotations and common layer properties. This method is called automatically with each display link, but it may also be called manually in situations where the backing source and layer need to be updated earlier.

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

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

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

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

  • Size of the additional area around the icon bounding box used for detecting symbol collisions.

  • Orientation of icon when map is pitched.

  • In combination with symbol-placement, determines the rotation behavior of icons.

  • Scales the icon to fit around the associated text.

  • Size of the additional area added to dimensions determined by icon-text-fit, in clockwise order: top, right, bottom, left.

  • 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.

  • Label placement relative to its geometry.

  • Distance between two symbol anchors.

  • 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 symbol-sort-key.

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

  • Font stack to use for displaying text.

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

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

  • Maximum angle change between adjacent characters.

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

  • Size of the additional area around the text bounding box used for detecting symbol collisions.

  • Orientation of text when map is pitched.

  • In combination with symbol-placement, determines the rotation behavior of the individual glyphs forming the text.

  • To increase the chance of placing high-priority labels on the map, you can provide an array of 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 text-radial-offset or the two-dimensional text-offset.

  • 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.

  • 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.

  • Controls the frame of reference for icon-translate.

  • 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.

  • Controls the frame of reference for text-translate.