MarkerStyle
public struct MarkerStyle
Represents the style used to display the better route bubble.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a
MarkerStyle
instance with given parameters.Declaration
Swift
public init( pinImage: UIImage? = Defaults.pinImage, fontURL: URL = Defaults.fontURL, textSize: Double = Defaults.textSize, textColor: UIColor = Defaults.textColor, textAnchoring: TextAnchoring = Defaults.textAnchoring, textOffset: MarkerLabelOptions.TextOffset = Defaults.textOffset )
Parameters
pinImage
The image of the marker that represents a better route.
fontURL
The font of the better route marker text. Default font is NotoSans-CondensedMedium.
textSize
The size of the text (in point units).
textColor
The color of the text shown for better route.
textAnchoring
TextAnchoring
determining how the label is positioned in the marker.textOffset
MarkerLabelOptions.TextOffset
describing the offset that will be used to position the label in the marker.
-
The image of the marker that represents a better route.
Declaration
Swift
public let pinImage: UIImage?
-
The font of the better route marker text. The default font is NotoSans-CondensedMedium.
Declaration
Swift
public let fontURL: URL
-
The size of the text (in point units).
Declaration
Swift
public let textSize: Double
-
The color of the text shown for better route.
Declaration
Swift
public let textColor: UIColor
-
TextAnchoring
determining how the label is positioned in the marker.Declaration
Swift
public let textAnchoring: TextAnchoring
-
MarkerLabelOptions.TextOffset
describing the offset that will be used to position the label in the marker.Declaration
Swift
public let textOffset: MarkerLabelOptions.TextOffset