VisualInstruction
The contents of a banner that should be displayed as added visual guidance for a route. The banner instructions are children of the steps during which they should be displayed, but they refer to the maneuver in the following step.
-
Initializes a new visual instruction banner object that displays the given information.
-
-
-
A plain text representation of the instruction.
This property is set to
nilwhen thetextproperty in the Mapbox Directions API response is an empty string. -
A structured representation of the instruction.
-
The type of maneuver required for beginning the step described by the visual instruction.
-
Additional directional information to clarify the maneuver type.
-
The heading at which the user exits a roundabout (traffic circle or rotary).
This property is measured in degrees clockwise relative to the user’s initial heading. A value of 180° means continuing through the roundabout without changing course, whereas a value of 0° means traversing the entire roundabout back to the entry point.
This property is only relevant if the
maneuverTypeis any of the following values:ManeuverType.takeRoundabout,ManeuverType.takeRotary,ManeuverType.turnAtRoundabout,ManeuverType.exitRoundabout, orManeuverType.exitRotary. -
-
A unit of information displayed to the user as part of a
See moreVisualInstruction.Declaration
Swift
Install in Dash
VisualInstruction Class Reference