DashPattern
public struct DashPattern : Hashable
Represents a dash pattern for map polyline.
-
Length of first gap in pixels.
Declaration
Swift
public let firstGapLength: Double -
Length of first dash in pixels.
Declaration
Swift
public let firstDashLength: Double -
Creates a uniform dash pattern in which the length of a gap is the same as the length of a dash. This allows for patterns like
' — — — —'or' ——— ——— ———'.Declaration
Swift
public init(dashLength: Double)Parameters
dashLengthThe length of a dash in pixels. The gap will have the same length. Clamped to the range of [1, 500].
-
Creates a simple dash pattern in which the lengths of a dash and gap can be different. This allows for patterns like
' — — — —'or' ——— ——— ———'.Declaration
Swift
public init(gapLength: Double, dashLength: Double)Parameters
gapLengthThe length of a gap in pixels. Clamped to the range of [1, 500].
dashLengthThe length of a dash in pixels. Clamped to the range of [1, 500].