新增点击地点标点,弹出地点信息弹窗功能
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user