DashedLine

public struct DashedLine : Encodable

Undocumented

  • Sets the line width (mapbox.layer.paint.line-width).

    Has an effect only when type is set to line.

    Declaration

    Swift

    public var width: Double?
  • Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray).

    Has an effect only when type is set to line.

    Declaration

    Swift

    public var dash: [Double]?
  • Creates DashedLine object with specified properties.

    Declaration

    Swift

    public init(width: Double? = nil, dash: [Double]? = nil)

    Parameters

    width

    Sets the line width (mapbox.layer.paint.line-width).

    dash

    Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray).