PolylineAnnotationManager

public class PolylineAnnotationManager : AnnotationManagerInternal

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

  • 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 }
  • Decrease line layer opacity based on occlusion from 3D objects. Value 0 disables occlusion, value 1 means fully occluded.

    Declaration

    Swift

    public var lineDepthOcclusionFactor: Double? { get set }
  • Emission strength

    Declaration

    Swift

    public var lineEmissiveStrength: 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 }
  • The line part between [trim-start, trim-end] will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range [0.0, 1.0].

    Declaration

    Swift

    public var lineTrimOffset: [Double]? { get set }