Add bus journeys.

This commit is contained in:
Edward Betts 2026-02-18 09:39:51 +00:00
parent bc2c884589
commit 960b4a1fc7
3 changed files with 56 additions and 2 deletions

View file

@ -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), {