新增点击地点标点,弹出地点信息弹窗功能

This commit is contained in:
2024-03-07 17:27:54 +08:00
parent 72ccdcf0a6
commit 0c5cbe6789
4 changed files with 20 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ export const useFlytoStore = defineStore({
state: () => ({
lng: NaN,
lat: NaN,
change:true,
}),
getters: {
value: (state) => { state.lng, state.lat }
@@ -17,6 +18,7 @@ export const useFlytoStore = defineStore({
this.lng = flyto.lng
this.lat = flyto.lat
this.change = !this.change
return true
},

View File

@@ -7,6 +7,7 @@ export const usePositionStore = defineStore({
state: () => ({
lng: NaN,
lat: NaN,
change:true,
}),
getters: {
value: (state) => { state.lng, state.lat }
@@ -17,6 +18,7 @@ export const usePositionStore = defineStore({
this.lng = position.lng
this.lat = position.lat
this.change = !this.change
return true
},