log start position
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Alessio Davoli 2023-07-18 18:03:14 +02:00
parent aa22f698b1
commit a08da30a10

View file

@ -12,7 +12,6 @@
const loadWorker = async () => {
if (!("geolocation" in navigator)) {
/* geolocation is not available */
return;
}
@ -44,8 +43,6 @@
navigator.geolocation.watchPosition(success, error, options);
};
onMount(async () => {
await loadWorker();
leaflet = await import('leaflet');
@ -59,6 +56,8 @@
});
var latlng = leaflet.latLng(latitude, longitude);
console.log(latitude)
console.log(longitude)
map.setView(latlng, 13);
map.setMaxBounds(map.getBounds());
@ -67,9 +66,7 @@
attribution:
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
})
.addTo(map);
.addTo(map);
});
onDestroy(async () => {