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

– addLinesForRouteStep:

- (void)addLinesForRouteStep:(WRLDRouteStep *)step

– addLinesForFloorTransition:stepBefore:stepAfter:

- (void)addLinesForFloorTransition:(WRLDRouteStep *)step stepBefore:(WRLDRouteStep *)stepBefore stepAfter:(WRLDRouteStep *)stepAfter

– 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.

– 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.

v0.0.1271