MarkerStyle
public struct MarkerStyle
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
MarkerStyle
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. By default,
nil
is used.startPinImage
An optional background image for the safety location’s marker without speed limit. By default,
nil
is used.speedLimitPinImage
An optional background image for the safety location’s marker with speed limit. By default,
nil
is used.endPinImage
An optional background image of the end marker for a safety location representing a zone. By default,
nil
is used.textStyle
Text style to visualize the safety location speed limits. By default,
TextStyle/init()
is used.
-
The image of the start marker for a safety location.
Declaration
Swift
public let startIconImage: MapImage
-
An optional image of the end marker for a safety location representing a zone. Default value is
nil
.Declaration
Swift
public let endIconImage: MapImage?
-
An optional background image for the safety location’s marker without a speed limit. Default value is
nil
.Declaration
Swift
public let startPinImage: MapImage?
-
An optional background image for the safety location’s marker with a speed limit. Default value is
nil
.Declaration
Swift
public let speedLimitPinImage: MapImage?
-
An optional background image of the end marker for a safety location representing a zone. Default value is
nil
.Declaration
Swift
public let endPinImage: MapImage?
-
Text style to visualize the safety location speed limits. Default values are the ones in
Defaults/TextStyle
.Declaration
Swift
public let textStyle: TextStyle?