Figure out router pattern for compliance steps
This commit is contained in:
parent
20614acb86
commit
4faa7fa8c0
8 changed files with 132 additions and 39 deletions
|
|
@ -612,12 +612,13 @@ onMounted(() => {
|
|||
locationStore
|
||||
.get()
|
||||
.then((loc: GeolocationPosition) => {
|
||||
console.log("user geolocation", loc);
|
||||
const coords = loc.coords;
|
||||
currentLocation.value = coords;
|
||||
if (currentCamera.value) {
|
||||
currentCamera.value.location = coords;
|
||||
currentCamera.value.zoom = 15;
|
||||
}
|
||||
currentCamera.value = {
|
||||
location: coords,
|
||||
zoom: 15,
|
||||
};
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log("failed to get location", e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue