The RouteVectorLayer class is the presented layer of a route above the map.
With this class, you can set the route style.
In order to show a route on the map, you should add to the route vector layer the Route object and attach the route vector layer to the map.
You can also use the default route vector layer of the map (you can get the object by the map’s routeVectorLayer property), and just use the map’s showRoute method.
Summary
| The RouteVectorLayer class is the presented layer of a route above the map. With this class, you can set the route style.
|
| |
| The RouteVectorLayer constructor. |
| Clears the route from the map. This method also kills the route object. |
| Returns true if the route is editable, otherwize, returns false.
|
| Returns the route line style. |
| |
| Hides the route from the map. |
| Hides the route animation. |
| |
| Hides the route maneuvers. |
| Assigns a route and map to the route vector layer. |
| Sets the route as editable. The user can drag the route to a new point to add a new location. |
| Sets the route line style. |
| Shows the route animation. |
| |
| Shows the route maneuvers. |