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
lineColorThe color of the vehicle restriction line.
outlineColorThe color of the vehicle restriction line outline.
lineWidthsThe widths (width per zoom level) of the vehicle restriction line.
lineOutlineWidthsThe widths (width per zoom level) of the vehicle restriction line outline.
lineStartCapTypeThe start cap of the vehicle restriction line.
lineEndCapTypeThe end cap of the vehicle restriction line.
linePatternDisplayThe criteria for the vehicle restriction line to be displayed with a pattern.
linePatternImageThe image for the pattern of the vehicle restriction line.
-
Default values for vehicle restrictions line style.
See moreImportant
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?
TomTom SDK for iOS (0.66.0)
RouteVehicleRestrictionsStyle