WRLDRouteView Class Reference
– initWithMapView:route:options:
- (instancetype)initWithMapView:(WRLDMapView *)map route:(WRLDRoute *)route options:(WRLDRouteViewOptions *)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
- (void)addToMap
Add this RouteView back on to the map, if it has been removed.
– makeVerticalLine:floor:height:
- (WRLDPolyline *)makeVerticalLine:(WRLDRouteStep *)step floor:(NSInteger)floor height:(CGFloat)height
!Deprecated
– addLinesForRouteStep:
- (void)addLinesForRouteStep:(WRLDRouteStep *)step
!Deprecated
– addLinesForFloorTransition:stepBefore:stepAfter:
- (void)addLinesForFloorTransition:(WRLDRouteStep *)step stepBefore:(WRLDRouteStep *)stepBefore stepAfter:(WRLDRouteStep *)stepAfter
!Deprecated
– updateRouteProgress:stepIndex:closestPointOnRoute:indexOfPathSegmentStartVertex:
- (void)updateRouteProgress:(int)sectionIndex stepIndex:(int)stepIndex closestPointOnRoute:(CLLocationCoordinate2D)closestPointOnRoute indexOfPathSegmentStartVertex:(int)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
- (void)removeFromMap
Remove this RouteView from the map.
– setWidth:
- (void)setWidth:(CGFloat)width
Sets the width of this RouteView’s polylines.
Argument | Description |
---|---|
width | The width of the polyline in screen pixels. |
– setColor:
- (void)setColor:(UIColor *)color
Sets the color for this RouteView’s polylines.
Argument | Description |
---|---|
color | The color of the polyline as a 32-bit ARGB color. |
– setForwardColor:
- (void)setForwardColor:(UIColor *)color
Sets the forward color for this RouteView’s polylines.
Argument | Description |
---|---|
color | The color of the polyline as a 32-bit ARGB color. |
– setMiterLimit:
- (void)setMiterLimit:(CGFloat)miterLimit
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. |