RouteVehicleRestrictionsStyle

public struct RouteVehicleRestrictionsStyle

Represents a style configuration for the vehicle restriction line.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Default values for vehicle restrictions line style.

    Important

    This is a Public Preview API. It may be changed or removed at any time.
    See more

    Declaration

    Swift

    public enum Defaults
  • Represents a style configuration for the vehicle restriction line.

    Declaration

    Swift

    public init(
        lineColor: UIColor = Defaults.lineColor,
        outlineColor: UIColor = Defaults.outlineColor,
        lineWidths: [Double: Double] = Defaults.lineWidths,
        lineOutlineWidths: [Double: Double] = Defaults.lineOutlineWidths,
        lineStartCapType: LineCapType = Defaults.lineStartCapType,
        lineEndCapType: LineCapType = Defaults.lineEndCapType,
        linePatternDisplay: LinePatternDisplay = Defaults.linePatternDisplay,
        linePatternImage: UIImage? = Defaults.linePatternImage
    )

    Parameters

    lineColor

    The color of the vehicle restriction line.

    outlineColor

    The color of the vehicle restriction line outline.

    lineWidths

    The widths (width per zoom level) of the vehicle restriction line.

    lineOutlineWidths

    The widths (width per zoom level) of the vehicle restriction line outline.

    lineStartCapType

    The start cap of the vehicle restriction line.

    lineEndCapType

    The end cap of the vehicle restriction line.

    linePatternDisplay

    The criteria for the vehicle restriction line to be displayed with a pattern.

    linePatternImage

    The image for the pattern of the vehicle restriction line.

  • The color of the vehicle restriction line.

    Declaration

    Swift

    public let lineColor: UIColor
  • The end cap of the vehicle restriction line.

    Declaration

    Swift

    public let lineEndCapType: LineCapType
  • The widths (width per zoom level) of the vehicle restriction line outline.

    Declaration

    Swift

    public let lineOutlineWidths: [Double : Double]
  • The criteria for the vehicle restriction line to be displayed with a pattern.

    Declaration

    Swift

    public let linePatternDisplay: LinePatternDisplay
  • The image for the pattern of the vehicle restriction line.

    Declaration

    Swift

    public let linePatternImage: UIImage?
  • The start cap of the vehicle restriction line.

    Declaration

    Swift

    public let lineStartCapType: LineCapType
  • The widths (width per zoom level) of the vehicle restriction line.

    Declaration

    Swift

    public let lineWidths: [Double : Double]
  • The color of the vehicle restriction line outline.

    Declaration

    Swift

    public let outlineColor: UIColor