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