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.-
Initializes
MarkerStylewith the given values.Declaration
Swift
public init( pinImage: UIImage? = Defaults.pinImage, textFontURI: String = Defaults.textFontURI, textSize: Double = Defaults.textSize, textColor: UIColor = Defaults.textColor, textAnchoring: TextAnchoring = Defaults.textAnchoring, textOffset: MarkerLabelOptions.TextOffset = Defaults.textOffset )Parameters
pinImageThe image of the marker that represents a better route. By default,
pinImageis used.textFontURIThe font of the better route marker text. By default,
textFontURIis used.textSizeThe size of the text (in point units). By default,
textSizeis used.textColorThe color of the text shown for better route. By default,
textColoris used.textAnchoringTextAnchoringdetermining how the label is positioned in the marker. By default,textAnchoringis used.textOffsetMarkerLabelOptions.TextOffsetdescribing the offset that will be used to position the label in the marker. By default,textOffsetis used.
-
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 textFontURI: String -
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 -
TextAnchoringdetermining how the label is positioned in the marker.Declaration
Swift
public let textAnchoring: TextAnchoring -
MarkerLabelOptions.TextOffsetdescribing the offset that will be used to position the label in the marker.Declaration
Swift
public let textOffset: MarkerLabelOptions.TextOffset
TomTom SDK for iOS (0.51.1)
MarkerStyle