From 3d9e6a3bee9db25ef6650a0b6e8d667c9104800a Mon Sep 17 00:00:00 2001 From: clerie Date: Tue, 7 Apr 2020 14:13:41 +0200 Subject: [PATCH] Refactor map ui --- wetter/static/wetter/css/wetter.css | 5 +++++ wetter/templates/index.html | 2 +- wetter/templates/station.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/wetter/static/wetter/css/wetter.css b/wetter/static/wetter/css/wetter.css index 506919d..09af4a7 100644 --- a/wetter/static/wetter/css/wetter.css +++ b/wetter/static/wetter/css/wetter.css @@ -74,6 +74,11 @@ footer a { background-color: rgba(0, 0, 0, 0.5); } +/* Leaflet fixes*/ .leaflet-top, .leaflet-bottom { z-index: 900 !important; } + +.leaflet-container a.btn { + color: #fff; +} diff --git a/wetter/templates/index.html b/wetter/templates/index.html index c5b4387..428cea6 100644 --- a/wetter/templates/index.html +++ b/wetter/templates/index.html @@ -47,7 +47,7 @@ mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6); } stations.forEach((station, i, j) => { - L.marker([station["lat"], station["lon"]]).addTo(mymap).bindPopup("

" + station["name"] + "

Mehr"); + L.marker([station["lat"], station["lon"]]).addTo(mymap).bindPopup("

" + station["name"] + "

Export Info"); }) }); diff --git a/wetter/templates/station.html b/wetter/templates/station.html index 01dcf3d..5a14c0a 100644 --- a/wetter/templates/station.html +++ b/wetter/templates/station.html @@ -73,7 +73,7 @@ mymap.setView([stations[0]["lat"], stations[0]["lon"]], 6); } stations.forEach((station, i, j) => { - L.marker([station["lat"], station["lon"]]).addTo(mymap).bindPopup("

" + station["name"] + "

Mehr"); + L.marker([station["lat"], station["lon"]]).addTo(mymap); }) });