PointAnnotationManager

public class PointAnnotationManager : AnnotationManager

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

  • Declaration

    Swift

    public let sourceId: String
  • Declaration

    Swift

    public let layerId: String
  • id

    Declaration

    Swift

    public let id: String
  • If true, the icon will be visible even if it collides with other previously drawn symbols.

    Declaration

    Swift

    public var iconAllowOverlap: Bool? { get set }
  • If true, other symbols can be visible even if they collide with the icon.

    Declaration

    Swift

    public var iconIgnorePlacement: Bool? { get set }
  • If true, the icon may be flipped to prevent it from being rendered upside-down.

    Declaration

    Swift

    public var iconKeepUpright: Bool? { get set }
  • If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.

    Declaration

    Swift

    public var iconOptional: Bool? { get set }
  • Size of the additional area around the icon bounding box used for detecting symbol collisions.

    Declaration

    Swift

    public var iconPadding: Double? { get set }
  • Orientation of icon when map is pitched.

    Declaration

    Swift

    public var iconPitchAlignment: IconPitchAlignment? { get set }
  • In combination with symbol-placement, determines the rotation behavior of icons.

    Declaration

    Swift

    public var iconRotationAlignment: IconRotationAlignment? { get set }
  • Scales the icon to fit around the associated text.

    Declaration

    Swift

    public var iconTextFit: IconTextFit? { get set }
  • Size of the additional area added to dimensions determined by icon-text-fit, in clockwise order: top, right, bottom, left.

    Declaration

    Swift

    public var iconTextFitPadding: [Double]? { get set }
  • 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.

    Declaration

    Swift

    public var symbolAvoidEdges: Bool? { get set }
  • Label placement relative to its geometry.

    Declaration

    Swift

    public var symbolPlacement: SymbolPlacement? { get set }
  • Distance between two symbol anchors.

    Declaration

    Swift

    public var symbolSpacing: Double? { get set }
  • 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.

    Declaration

    Swift

    public var symbolZOrder: SymbolZOrder? { get set }
  • If true, the text will be visible even if it collides with other previously drawn symbols.

    Declaration

    Swift

    public var textAllowOverlap: Bool? { get set }
  • If true, other symbols can be visible even if they collide with the text.

    Declaration

    Swift

    public var textIgnorePlacement: Bool? { get set }
  • If true, the text may be flipped vertically to prevent it from being rendered upside-down.

    Declaration

    Swift

    public var textKeepUpright: Bool? { get set }
  • Text leading value for multi-line text.

    Declaration

    Swift

    public var textLineHeight: Double? { get set }
  • Maximum angle change between adjacent characters.

    Declaration

    Swift

    public var textMaxAngle: Double? { get set }
  • If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.

    Declaration

    Swift

    public var textOptional: Bool? { get set }
  • Size of the additional area around the text bounding box used for detecting symbol collisions.

    Declaration

    Swift

    public var textPadding: Double? { get set }
  • Orientation of text when map is pitched.

    Declaration

    Swift

    public var textPitchAlignment: TextPitchAlignment? { get set }
  • In combination with symbol-placement, determines the rotation behavior of the individual glyphs forming the text.

    Declaration

    Swift

    public var textRotationAlignment: TextRotationAlignment? { get set }
  • 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.

    Declaration

    Swift

    public var textVariableAnchor: [String]? { get set }
  • 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. The order of elements in an array define priority order for the placement of an orientation variant.

    Declaration

    Swift

    public var textWritingMode: [String]? { get set }
  • 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.

    Declaration

    Swift

    public var iconTranslate: [Double]? { get set }
  • Controls the frame of reference for icon-translate.

    Declaration

    Swift

    public var iconTranslateAnchor: IconTranslateAnchor? { get set }
  • 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.

    Declaration

    Swift

    public var textTranslate: [Double]? { get set }
  • Controls the frame of reference for text-translate.

    Declaration

    Swift

    public var textTranslateAnchor: TextTranslateAnchor? { get set }
  • Font stack to use for displaying text.

    Declaration

    Swift

    public var textFont: [String]? { get set }
  • Set this delegate in order to be called back if a tap occurs on an annotation being managed by this manager.

    Declaration

    Swift

    public weak var delegate: AnnotationInteractionDelegate? { get set }
  • The UITapGestureRecognizer that’s listening to touch events on the map for the annotations present in this manager

    Declaration

    Swift

    public var tapGestureRecognizer: UITapGestureRecognizer?