New travel type: coach

Fixes #149
This commit is contained in:
Edward Betts 2025-07-25 18:16:34 +01:00
parent 51139a1a70
commit 88d10af3f5
5 changed files with 158 additions and 25 deletions

View file

@ -140,7 +140,7 @@ function build_map(map_id, coordinates, routes) {
// Draw routes
routes.forEach(function(route) {
var color = {"train": "blue", "flight": "red", "unbooked_flight": "orange"}[route.type];
var color = {"train": "blue", "flight": "red", "unbooked_flight": "orange", "coach": "green"}[route.type];
var style = { weight: 3, opacity: 0.5, color: color };
if (route.geojson) {
L.geoJSON(JSON.parse(route.geojson), {