RoadShield
public struct RoadShield : Equatable
Describes a road shield information.
Note
The Mapbox Electronic Horizon feature of the Mapbox Navigation SDK is in public beta and is subject to changes, including its pricing. Use of the feature is subject to the beta product restrictions in the Mapbox Terms of Service. Mapbox reserves the right to eliminate any free tier or free evaluation offers at any time and require customers to place an order to purchase the Mapbox Electronic Horizon feature, regardless of the level of use of the feature.-
The base url for a shield image.
Declaration
Swift
public let baseUrl: String
-
The shield display reference.
Declaration
Swift
public let displayRef: String
-
The shield text.
Declaration
Swift
public let name: String
-
The string indicating the color of the text to be rendered on the route shield, e.g. “black”.
Declaration
Swift
public let textColor: String
-
Creates a new
Shield
instance.Declaration
Swift
public init(baseUrl: String, displayRef: String, name: String, textColor: String)
Parameters
baseUrl
The base url for a shield image.
displayRef
The shield display reference.
name
The shield text.
textColor
The string indicating the color of the text to be rendered on the route shield.