Add bus journeys.
This commit is contained in:
parent
bc2c884589
commit
960b4a1fc7
3 changed files with 56 additions and 2 deletions
|
|
@ -186,7 +186,7 @@ function build_map(map_id, coordinates, routes) {
|
|||
|
||||
// Draw routes
|
||||
routes.forEach(function(route) {
|
||||
var color = {"train": "blue", "flight": "red", "unbooked_flight": "orange", "coach": "green"}[route.type];
|
||||
var color = {"train": "blue", "flight": "red", "unbooked_flight": "orange", "coach": "green", "bus": "purple"}[route.type];
|
||||
var style = { weight: 3, opacity: 0.5, color: color };
|
||||
if (route.geojson) {
|
||||
L.geoJSON(JSON.parse(route.geojson), {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue