BetterRouteStyle
public struct BetterRouteStyle
Represents the style used to display the better route.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a
BetterRouteStyleinstance.Declaration
Swift
public init( lineWidthForScenes: [WidthScene] = Defaults.lineWidthForScenes, outlineWidthForScenes: [WidthScene] = Defaults.outlineWidthForScenes, lineColor: UIColor = Defaults.lineColor, markerStyle: MarkerStyle = MarkerStyle(), isMarkerVisible: Bool = Defaults.isMarkerVisible )Parameters
lineWidthForScenesThe width (in point units) per scene for a better route tube. This parameter must be a non-empty list containing non-negative values for both the width and the scene. Items in this list must not contain duplicated values.
outlineWidthForScenesThe width (in point units) of the line’s outline per scene for better route tube. This parameter must be a non-empty list containing non-negative values for both the width and the scene. Items in this list must not contain duplicated values.
lineColorThe color of the better route tube. You can control the route line’s opacity by using the alpha component of the
UIColor.markerStyleThe better route marker style.
isMarkerVisibleDetermines if the better route marker is visible. Default value is
true.
-
Default values for a better route style.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Defaults -
The width (in point units) of the line per scene for a better route tube. This parameter must be a non-empty list containing non-negative values for both the width and the scene. Items in this list must not contain duplicated values.
Declaration
Swift
public let lineWidthForScenes: [WidthScene] -
The width (in point units) of the outline per scene for better route tube. This parameter must be a non-empty list containing non-negative values for both the width and the scene. Items in this list must not contain duplicated values.
Declaration
Swift
public let outlineWidthForScenes: [WidthScene] -
The color of the better route tube. You can control the route line’s opacity by using an alpha component of the
UIColor.Declaration
Swift
public let lineColor: UIColor -
The better route marker style.
Declaration
Swift
public let markerStyle: MarkerStyle -
The default value of the better route marker visibility.
Declaration
Swift
public let isMarkerVisible: Bool
-
Represents the style used to display the better route bubble.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public struct MarkerStyle
TomTom SDK for iOS (0.47.3)
BetterRouteStyle