routingUI
Description
This bundle provides UI for routing. In this bundle user can select start and end points of route and then search route of between these points. Finally results are showed on the popup.
Screenshot

Bundle configuration
No configuration is required, but there is few possible configurations:
- Setting
decimalsfor wanted decimals rounding for input box lon/lat values. For examples:
// Set all projections rounding rule
{
"decimals": 6
}
// Set projection specified rounding rules
{
"decimals" {
"EPSG:4326": 5,
"EPSG:3067": 0
}
}
// Use default rounding rules, use empty decimals configuration. Then rounding decimal are map projection unit specified
{
}
Requests the bundle sends out
| Request | Where/why it's used |
|---|---|
| `GetRouteRequest` | Get route plan. |
| `MapModulePlugin.AddFeaturesToMapRequest` | Add route plan geometry to map. |
| `MapModulePlugin.RemoveFeaturesFromMapRequest` | Remove route plan geometry from map. |
| `MapModulePlugin.AddMarkerRequest` | Add route start and end point to map. |
| `MapModulePlugin.RemoveMarkersRequest` | Remove route start and end points from map. |
Events the bundle listens to
| Event | How does the bundle react |
|---|---|
| `MapClickedEvent` | Updates the coordinates gotten from event to the UI. |
| `RouteResultEvent` | Updates the route plans to the UI. |
Dependencies
| Dependency | Linked from | Purpose |
|---|---|---|
| jQuery | Assumes to be linked in the page | Used to create the component UI from begin to end |
| Moment.js | Bundle | Used to format date/time |