Fix location finding
This commit is contained in:
parent
d14b7b2b1f
commit
4bb5216687
@ -53,7 +53,7 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
map.on('locationfound', (e) => {
|
map.on('locationfound', (e) => {
|
||||||
dispatch('locationfound', e.detail);
|
dispatch('locationfound', e.latlng);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Add the location control
|
// Add the location control
|
||||||
|
@ -43,8 +43,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
const locationfound = (e) => {
|
const locationfound = (e) => {
|
||||||
console.log('Updating current location event', e);
|
console.log('Updating current location event', e.detail);
|
||||||
updateAddr(wasm.call.EncodedAddress.from_coordinate(`${e.latlng.lat}, ${e.latlng.lng}`), false);
|
updateAddr(wasm.call.EncodedAddress.from_coordinate(`${e.detail.lat}, ${e.detail.lng}`), false);
|
||||||
};
|
};
|
||||||
|
|
||||||
const onMapClick = (e) => {
|
const onMapClick = (e) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user