JS tidying

This commit is contained in:
Philip Sargent 2021-10-29 20:16:34 +03:00
parent f63c4bdbfc
commit 5a6d1934e5
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
<script src="/javascript/leaflet/leaflet.js"></script> <script src="/javascript/leaflet/leaflet.js"></script>
<link href="/javascript/leaflet//leaflet.css" rel="stylesheet"/> <link href="/javascript/leaflet/leaflet.css" rel="stylesheet"/>
<div id="osm-map"></div> <div id="osm-map"></div>
<script>
// this file found on an expo laptop and put into the VCS in 2019
// Where you want to render the map. // Where you want to render the map.
var element = document.getElementById('osm-map'); var element = document.getElementById('osm-map');
@ -17,6 +18,7 @@ attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contri
}).addTo(map); }).addTo(map);
// Target's GPS coordinates. // Target's GPS coordinates.
// This is Budapest, why ?!
var target = L.latLng('47.50737', '19.04611'); var target = L.latLng('47.50737', '19.04611');
// Set map's center to target with zoom 14. // Set map's center to target with zoom 14.
@ -24,3 +26,4 @@ map.setView(target, 14);
// Place a marker on the same location. // Place a marker on the same location.
L.marker(target).addTo(map); L.marker(target).addTo(map);
</script>

View File

@ -1 +0,0 @@
/usr/share/javascript