Add markers to map.

This commit is contained in:
2024-01-15 11:00:56 -06:00
parent bcb0624786
commit 5fb589507e
2 changed files with 29 additions and 2 deletions

View File

@ -16,8 +16,11 @@
<div id="map"></div>
<script>
var map = L.map('map').setView([51.505, -0.09], 13);
var map = L.map('map').setView([{{station_lat}}, {{station_lon}}], 10);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'}).addTo(map);
{{markers|safe}}
</script>
</body>
</html>