WRLDRouteView Class Reference
– initWithMapView:route:options:
Create a new RouteView for the given route and options, and add it to the map.
Argument | Description |
---|---|
map | The WRLDMapView to draw this RouteView on. |
route | The Route to display. |
options | Options for styling the route. |
– addToMap
Add this RouteView back on to the map, if it has been removed.
– makeVerticalLine:floor:height:
!Deprecated
– addLinesForRouteStep:
!Deprecated
– addLinesForFloorTransition:stepBefore:stepAfter:
!Deprecated
– updateRouteProgress:stepIndex:closestPointOnRoute:indexOfPathSegmentStartVertex:
Update the progress of turn by turn navigation on route.
Argument | Description |
---|---|
sectionIndex | The index of current WRLDRouteSection. |
stepIndex | The index of current WRLDRouteStep. |
closestPointOnRoute | Closest point on the route in WRLDPointOnRouteResult. |
indexOfPathSegmentStartVertex | Vertex index where the path segment starts for the projected point. Can be used to separate traversed path. |
– removeFromMap
Remove this RouteView from the map.
– setWidth:
Sets the width of this RouteView’s polylines.
Argument | Description |
---|---|
width | The width of the polyline in screen pixels. |
– setColor:
Sets the color for this RouteView’s polylines.
Argument | Description |
---|---|
color | The color of the polyline as a 32-bit ARGB color. |
– setForwardColor:
Sets the forward color for this RouteView’s polylines.
Argument | Description |
---|---|
color | The color of the polyline as a 32-bit ARGB color. |
– setMiterLimit:
Sets the miter limit of this RouteView’s polylines.
Argument | Description |
---|---|
miterLimit | The miter limit, as a ratio between maximum allowed miter join diagonal length and the line width. |