Undo/Reload

This commit is contained in:
portree_kid 2020-01-08 22:58:00 +01:00
parent c7b06a7392
commit 0e7e8f2785
2 changed files with 9 additions and 2 deletions

View File

@ -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()

View File

@ -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 () {