RouteView

Package: com.eegeo.mapapi.widgets

Constructors

RouteView(EegeoMap map, Route route, RouteViewOptions options)

Create a new RouteView for the given route and options, and add it to the map.

Type argument Description
EegeoMap map The EegeoMap to draw this RouteView on.
Route route The Route to display.
RouteViewOptions options Options for styling the route.

Methods

void addToMap()

Add this RouteView back on to the map, if it has been removed.

void updateRouteProgress(int sectionIndex, int stepIndex, LatLng closestPointOnRoute, int indexOfPathSegmentStartVertex)

Update the progress of turn by turn navigation on route.

Type argument Description
int sectionIndex The index of current RouteSection.
int stepIndex The index of current RouteStep.
LatLng closestPointOnRoute Closest point on the route in PointOnRoute.
int indexOfPathSegmentStartVertex Vertex index where the path segment starts for the projected point. Can be used to separate traversed path.

void removeFromMap()

Remove this RouteView from the map.

void setWidth(float width)

Sets the width of this RouteView’s polylines.

Type argument Description
float width The width of the polyline in screen pixels.

void setColor(int color)

Sets the color for this RouteView’s polylines.

Type argument Description
int color The color of the polyline as a 32-bit ARGB color.

void setForwardColor(int color)

Sets the Forward color for this RouteView’s polylines.

Type argument Description
int color The color of the polyline as a 32-bit ARGB color.

void setMiterLimit(float miterLimit)

Sets the miter limit of this RouteView’s polylines.

Type argument Description
float miterLimit the miter limit, as a ratio between maximum allowed miter join diagonal length and the line width.
v0.0.1338
Overview Introduction
Picking PickResult
Widgets (Optional) BlueSphere
Tag Service (Optional) TagService OnTagsLoadCompletedListener
RouteView Widget (Optional) RouteView RouteViewOptions