Refactor map ui

This commit is contained in:
clerie 2020-04-07 14:13:41 +02:00
parent 751a1eecfd
commit 3d9e6a3bee
3 changed files with 7 additions and 2 deletions

View File

@ -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;
}

View File

@ -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("<h3>" + station["name"] + "</h3><a href=\"/station/" + station["dwd_id"] + "/\" class=\"btn btn-primary\">Mehr</a>");
L.marker([station["lat"], station["lon"]]).addTo(mymap).bindPopup("<h3>" + station["name"] + "</h3><a href=\"/station/" + station["dwd_id"] + "/export/\" class=\"btn btn-secondary\">Export</a> <a href=\"/station/" + station["dwd_id"] + "/\" class=\"btn btn-primary\">Info</a>");
})
});
</script>

View File

@ -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("<h3>" + station["name"] + "</h3><a href=\"/station/" + station["dwd_id"] + "/\" class=\"btn btn-primary\">Mehr</a>");
L.marker([station["lat"], station["lon"]]).addTo(mymap);
})
});
</script>