This commit is contained in:
parent
bd12df0b8a
commit
094dd5b070
1 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@
|
|||
maximumAge: 0,
|
||||
};
|
||||
|
||||
function success(pos) {
|
||||
function success(pos: GeolocationPosition) {
|
||||
const crd = pos.coords;
|
||||
|
||||
let string = "";
|
||||
|
@ -82,11 +82,11 @@
|
|||
await watchPosition();
|
||||
leaflet = await import('leaflet');
|
||||
|
||||
renderMap()
|
||||
renderMap();
|
||||
});
|
||||
|
||||
onDestroy(async () => {
|
||||
if(watchPositionId) {
|
||||
if (watchPositionId) {
|
||||
navigator.geolocation.clearWatch(watchPositionId);
|
||||
}
|
||||
if (map) {
|
||||
|
|
Loading…
Reference in a new issue