ShieldRepresentation
struct ShieldRepresentation : Equatable, Codable
A mapbox shield representation of a visual instruction component.
-
Initializes a mapbox shield with the given name, text color, and display ref.
Declaration
Swift
public init(baseURL: URL, name: String, textColor: String, text: String) -
Base URL to query the styles endpoint.
Declaration
Swift
public let baseURL: URL -
String indicating the name of the route shield.
Declaration
Swift
public let name: String -
String indicating the color of the text to be rendered on the route shield.
Declaration
Swift
public let textColor: String -
String indicating the route reference code that will be displayed on the shield.
Declaration
Swift
public let text: String -
Declaration
Swift
public init(from decoder: Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws
Install in Dash
ShieldRepresentation Structure Reference