diff --git a/templates/trip_page.html b/templates/trip_page.html index b49bb6f..2924746 100644 --- a/templates/trip_page.html +++ b/templates/trip_page.html @@ -130,12 +130,12 @@ routes.forEach(function(route) { // If route is defined as GeoJSON L.geoJSON(JSON.parse(route.geojson), { style: function(feature) { - return {color: route.type === "train" ? "green" : "blue"}; // Green for trains, blue for flights + return {color: route.type === "train" ? "blue" : "blue"}; // Green for trains, blue for flights } }).addTo(map); } else { // If route is defined by 'from' and 'to' coordinates - var color = route.type === "train" ? "green" : "red"; // Green for trains, red for flights + var color = route.type === "train" ? "blue" : "red"; // Green for trains, red for flights L.polyline([route.from, route.to], {color: color}).addTo(map); } });