summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-28 22:21:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-28 22:21:17 +0100
commit0ec82a5102b92438bf396b7439bce294ed9e417a (patch)
tree3a97e5d65884c2a173bbd552e4913fe2ad4180fc
parentd8fb9f6e98316b8f341b777986e7f9fd9dc1559c (diff)
map: improve line color1.12.5
-rw-r--r--templates/_map.html.ep11
1 files changed, 6 insertions, 5 deletions
diff --git a/templates/_map.html.ep b/templates/_map.html.ep
index cceec01..5d44841 100644
--- a/templates/_map.html.ep
+++ b/templates/_map.html.ep
@@ -31,18 +31,19 @@ var routes = [
% }
];
+var pl = L.polyline(routes, {color: '#673ab7', opacity: 0.6}).addTo(map);
+if (routes.length) {
+ map.fitBounds(pl.getBounds());
+}
+
for (var station_id in stations) {
L.circle(stations[station_id][0], {
color: '#f03',
+ opacity: 0.7,
fillColor: '#f03',
fillOpacity: 0.5,
radius: 250
}).bindPopup(stations[station_id][1]).addTo(map);
}
-var pl = L.polyline(routes, {color: '#f09', opacity: 0.5}).addTo(map);
-if (routes.length) {
- map.fitBounds(pl.getBounds());
-}
-
</script>