Undo/Reload
This commit is contained in:
parent
c7b06a7392
commit
0e7e8f2785
@ -26,10 +26,12 @@
|
|||||||
undo () {
|
undo () {
|
||||||
this.editing = false
|
this.editing = false
|
||||||
this.$parent.$parent.$refs.editLayer.disableEdit()
|
this.$parent.$parent.$refs.editLayer.disableEdit()
|
||||||
|
this.$parent.$parent.$refs.editLayer.reload()
|
||||||
},
|
},
|
||||||
save () {
|
save () {
|
||||||
this.editing = false
|
this.editing = false
|
||||||
this.$parent.$parent.$refs.editLayer.disableEdit()
|
this.$parent.$parent.$refs.editLayer.disableEdit()
|
||||||
|
this.$parent.$parent.$refs.editLayer.save()
|
||||||
},
|
},
|
||||||
drawPolyline () {
|
drawPolyline () {
|
||||||
this.$parent.$parent.$refs.editLayer.drawPolyline()
|
this.$parent.$parent.$refs.editLayer.drawPolyline()
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
maxId: 1
|
maxId: 1, icao: String
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -38,6 +38,7 @@
|
|||||||
console.log(this.groundnet.maxId)
|
console.log(this.groundnet.maxId)
|
||||||
|
|
||||||
this.groundnet.addTo(this.$parent.mapObject)
|
this.groundnet.addTo(this.$parent.mapObject)
|
||||||
|
this.icao = icao
|
||||||
},
|
},
|
||||||
visible (feature) {
|
visible (feature) {
|
||||||
let bounds = this.$store.state.Settings.bounds
|
let bounds = this.$store.state.Settings.bounds
|
||||||
@ -97,8 +98,12 @@
|
|||||||
addFeature(circle)
|
addFeature(circle)
|
||||||
// console.log(this.groundnet)
|
// console.log(this.groundnet)
|
||||||
this.$parent.mapObject.off('click', this.addParking)
|
this.$parent.mapObject.off('click', this.addParking)
|
||||||
|
},
|
||||||
|
reload () {
|
||||||
|
this.load(this.icao)
|
||||||
|
},
|
||||||
|
save () {
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
edit: function () {
|
edit: function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user