PolylineAnnotation

public struct PolylineAnnotation : Annotation

Undocumented

  • id

    Identifier for this annotation

    Declaration

    Swift

    public let id: String
  • The geometry backing this annotation

    Declaration

    Swift

    public var geometry: Geometry { get }
  • The line string backing this annotation

    Declaration

    Swift

    public var lineString: LineString
  • Properties associated with the annotation

    Declaration

    Swift

    public var userInfo: [String : Any]?
  • Create a polyline annotation with a LineString and an optional identifier.

    Declaration

    Swift

    public init(id: String = UUID().uuidString, lineString: LineString)
  • Create a polyline annotation with an array of coordinates and an optional identifier.

    Declaration

    Swift

    public init(id: String = UUID().uuidString, lineCoordinates: [CLLocationCoordinate2D])
  • The display of lines when joining.

    Declaration

    Swift

    public var lineJoin: LineJoin? { get set }
  • Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

    Declaration

    Swift

    public var lineSortKey: Double? { get set }
  • Blur applied to the line, in pixels.

    Declaration

    Swift

    public var lineBlur: Double? { get set }
  • The color with which the line will be drawn.

    Declaration

    Swift

    public var lineColor: StyleColor? { get set }
  • Draws a line casing outside of a line’s actual path. Value indicates the width of the inner gap.

    Declaration

    Swift

    public var lineGapWidth: Double? { get set }
  • The line’s offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.

    Declaration

    Swift

    public var lineOffset: Double? { get set }
  • The opacity at which the line will be drawn.

    Declaration

    Swift

    public var lineOpacity: Double? { get set }
  • Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, …, 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.

    Declaration

    Swift

    public var linePattern: String? { get set }
  • Stroke thickness.

    Declaration

    Swift

    public var lineWidth: Double? { get set }