SafetyLocationMarkerStyle
public struct SafetyLocationMarkerStyle
A container for the start, end, and background images of safety location markers.
Important
This stylization API is intended to be used for only the turn-by-turn navigation.Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a new
SafetyLocationMarkerStyle
instance with the specified values.Declaration
Parameters
startIconImage
The image of the start marker for a safety location.
endIconImage
An optional image of the end marker for a safety location representing a zone. Default value is
nil
.startPinImage
An optional background image for the safety location’s marker without speed limit. Default value is
nil
.speedLimitPinImage
An optional background image for the safety location’s marker with speed limit. Default value is
nil
.endPinImage
An optional background image of the end marker for a safety location representing a zone. Default value is
nil
.textStyle
Text style to visualize the safety location speed limits. Default values are the ones in
Defaults/TextStyle
.
-
The image of the start marker for a safety location.
Declaration
Swift
public let startIconImage: UIImage
-
An optional image of the end marker for a safety location representing a zone. Default value is
nil
.Declaration
Swift
public let endIconImage: UIImage?
-
An optional background image for the safety location’s marker without a speed limit. Default value is
nil
.Declaration
Swift
public let startPinImage: UIImage?
-
An optional background image for the safety location’s marker with a speed limit. Default value is
nil
.Declaration
Swift
public let speedLimitPinImage: UIImage?
-
An optional background image of the end marker for a safety location representing a zone. Default value is
nil
.Declaration
Swift
public let endPinImage: UIImage?
-
Text style to visualize the safety location speed limits. Default values are the ones in
Defaults/TextStyle
.Declaration
Swift
public let textStyle: TextStyle?