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.-
init(lineColor:
outlineColor: lineWidths: lineOutlineWidths: lineStartCapType: lineEndCapType: linePatternDisplay: linePatternImage: ) 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.
-
Default values for vehicle restrictions line style.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Defaults
-
The color of the vehicle restriction line.
Declaration
Swift
public let lineColor: UIColor
-
The color of the vehicle restriction line outline.
Declaration
Swift
public let outlineColor: UIColor
-
The widths (width per zoom level) of the vehicle restriction line.
Declaration
Swift
public let lineWidths: [Double : Double]
-
The widths (width per zoom level) of the vehicle restriction line outline.
Declaration
Swift
public let lineOutlineWidths: [Double : Double]
-
The start cap of the vehicle restriction line.
Declaration
Swift
public let lineStartCapType: LineCapType
-
The end cap of the vehicle restriction line.
Declaration
Swift
public let lineEndCapType: LineCapType
-
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?