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.1467
- Introduction
- EegeoMapOptions
- OnInitialStreamingCompleteListener
- OnMapReadyCallback
- MapFeatureType
- Promise
- Ready
- Polygon
- PolygonOptions
- Polyline
- PolylineOptions
- IndoorMap
- OnIndoorEnteredListener
- OnIndoorExitedListener
- OnIndoorEnterFailedListener
- OnFloorChangedListener
- OnIndoorMapLoadedListener
- OnIndoorMapUnloadedListener
- IndoorMapEntity
- IndoorMapEntityInformation
- IndoorMapEntityLoadState
- OnIndoorMapEntityInformationChangedListener
- IndoorMapFloorOutlineInformation
- IndoorMapFloorOutlinePolygon
- IndoorMapFloorOutlinePolygonRing
- OnIndoorMapFloorOutlineInformationLoadedListener
- BuildingHighlight
- BuildingHighlightOptions
- BuildingInformation
- BuildingDimensions
- BuildingContour
- OnBuildingInformationReceivedListener
- Prop
- PropOptions
- PickResult
- BlueSphere
- PoiService
- PoiSearch
- TextSearchOptions
- TagSearchOptions
- AutocompleteOptions
- PoiSearchResponse
- PoiSearchResult
- OnPoiSearchCompletedListener
- TagService
- OnTagsLoadCompletedListener
- MapsceneService
- MapsceneRequest
- MapsceneRequestOptions
- MapsceneRequestResponse
- Mapscene
- OnMapsceneRequestCompletedListener
- MapsceneSearchConfig
- MapsceneStartLocation
- MapsceneDataSources
- RoutingService
- RoutingQuery
- RoutingQueryOptions
- RoutingQueryResponse
- Route
- RouteSection
- RouteStep
- RouteDirections
- TransportationMode
- OnRoutingQueryCompletedListener
- RouteView
- RouteViewOptions
Overview
Supporting classes
Polygons
Polylines
Indoor maps
Indoor map entities
Indoor map floor outlines
Buildings
Props
Picking
Widgets (Optional)
POI Service (Optional)
Tag Service (Optional)
Mapscene Service (Optional)
Routing Service (Optional)
RouteView Widget (Optional)
Overview
Introduction
Supporting classes
EegeoMapOptions
OnInitialStreamingCompleteListener
OnMapReadyCallback
MapFeatureType
Promise
Ready
Polygons
Polygon
PolygonOptions
Polylines
Polyline
PolylineOptions
Indoor maps
IndoorMap
OnIndoorEnteredListener
OnIndoorExitedListener
OnIndoorEnterFailedListener
OnFloorChangedListener
OnIndoorMapLoadedListener
OnIndoorMapUnloadedListener
Indoor map entities
IndoorMapEntity
IndoorMapEntityInformation
IndoorMapEntityLoadState
OnIndoorMapEntityInformationChangedListener
Indoor map floor outlines
IndoorMapFloorOutlineInformation
IndoorMapFloorOutlinePolygon
IndoorMapFloorOutlinePolygonRing
OnIndoorMapFloorOutlineInformationLoadedListener
Buildings
BuildingHighlight
BuildingHighlightOptions
BuildingInformation
BuildingDimensions
BuildingContour
OnBuildingInformationReceivedListener
Props
Prop
PropOptions
Picking
PickResult
Widgets (Optional)
BlueSphere
POI Service (Optional)
PoiService
PoiSearch
TextSearchOptions
TagSearchOptions
AutocompleteOptions
PoiSearchResponse
PoiSearchResult
OnPoiSearchCompletedListener
Tag Service (Optional)
TagService
OnTagsLoadCompletedListener
Mapscene Service (Optional)
MapsceneService
MapsceneRequest
MapsceneRequestOptions
MapsceneRequestResponse
Mapscene
OnMapsceneRequestCompletedListener
MapsceneSearchConfig
MapsceneStartLocation
MapsceneDataSources
Routing Service (Optional)
RoutingService
RoutingQuery
RoutingQueryOptions
RoutingQueryResponse
Route
RouteSection
RouteStep
RouteDirections
TransportationMode
OnRoutingQueryCompletedListener
RouteView Widget (Optional)
RouteView
RouteViewOptions