DestinationConnectionLineStyle
public struct DestinationConnectionLineStyle
The DestinationConnectionLineStyle
struct represents the style of a dotted line connecting the drivable destination with the final destination.
It allows the user to customize the dotted line by specifying various parameters such as line pattern, dash length,
gap color, pattern length, pattern color, and pattern width.
Important
This is a Public Preview API. It may be changed or removed at any time.Contains default values for RouteStyle.DestinationConnectionLineStyle
.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Defaults
Initializes DestinationConnectionLineStyle
with values from Defaults
.
Declaration
Swift
public init()
Initializes DestinationConnectionLineStyle
with the given values.
Throws
StyleConfigurationError/invalidArgument
if width
is not greater than 0.
Declaration
Swift
public init(
patternTexture: UIImage? = DestinationConnectionLineStyle.Defaults.patternTexture,
width: Double = DestinationConnectionLineStyle.Defaults.width,
outlineColor: UIColor = DestinationConnectionLineStyle.Defaults.outlineColor
) throws
Parameters
patternTexture
|
The pattern image for the connection line. By default, |
width
|
The pattern width of the connection line. This parameter must be greater than 0. By default, |
outlineColor
|
The outline color of the connection line. By default, |
The outline color of the connection line.
Declaration
Swift
public let outlineColor: UIColor
A pattern texture image that determines the pattern of the line.
Declaration
Swift
public let patternTexture: UIImage?
The pattern width of the connection line, measured in density-independent pixels.
Declaration
Swift
public let width: Double