PolylineAnnotationManager

public class PolylineAnnotationManager : AnnotationManagerInternal

An instance of PolylineAnnotationManager is responsible for a collection of PolylineAnnotations.

  • Declaration

    Swift

    public let sourceId: String
  • Declaration

    Swift

    public let layerId: String
  • id

    Declaration

    Swift

    public let id: String
  • 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.

    Declaration

    Swift

    public func syncSourceAndLayerIfNeeded()
  • The display of line endings.

    Declaration

    Swift

    public var lineCap: LineCap? { get set }
  • Used to automatically convert miter joins to bevel joins for sharp angles.

    Declaration

    Swift

    public var lineMiterLimit: Double? { get set }
  • Used to automatically convert round joins to miter joins for shallow angles.

    Declaration

    Swift

    public var lineRoundLimit: Double? { get set }
  • Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with lineMetrics: true specified won’t render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.

    Declaration

    Swift

    public var lineDasharray: [Double]? { get set }
  • The geometry’s offset. Values are [x, y] where negatives indicate left and up, respectively.

    Declaration

    Swift

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

    Declaration

    Swift

    public var lineTranslateAnchor: LineTranslateAnchor? { get set }