Remove yarn related code
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Alessio Davoli 2023-12-12 18:59:19 +01:00
parent 40277e3380
commit 0c631c7a36
2 changed files with 8 additions and 4 deletions

View file

View file

@ -48,9 +48,7 @@
navigator.geolocation.watchPosition(success, error, options); navigator.geolocation.watchPosition(success, error, options);
}; };
onMount(async () => { const renderMap = () => {
await watchPosition();
leaflet = await import('leaflet');
layerGroup = leaflet.layerGroup(); layerGroup = leaflet.layerGroup();
// Startup Map // Startup Map
@ -70,6 +68,12 @@
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}) })
.addTo(map); .addTo(map);
}
onMount(async () => {
await watchPosition();
leaflet = await import('leaflet');
renderMap()
}); });
onDestroy(async () => { onDestroy(async () => {