|
|
|
@ -206,7 +206,6 @@ You should have received a copy of the GNU General Public License along with FG
|
|
|
|
|
this.featureLookup = [];
|
|
|
|
|
this.groundnetLayerGroup.eachLayer(l => {
|
|
|
|
|
l.enableEdit()
|
|
|
|
|
|
|
|
|
|
l.featureLookup = this.featureLookup;
|
|
|
|
|
if (typeof l.extensions === 'function') {
|
|
|
|
|
l.extensions(this)
|
|
|
|
@ -214,6 +213,12 @@ You should have received a copy of the GNU General Public License along with FG
|
|
|
|
|
if (typeof l.bringToFront === 'function') {
|
|
|
|
|
l.bringToFront()
|
|
|
|
|
}
|
|
|
|
|
if (typeof l.updateStyle === 'function') {
|
|
|
|
|
l.updateStyle()
|
|
|
|
|
}
|
|
|
|
|
if (typeof l.setInteractive === 'function') {
|
|
|
|
|
l.setInteractive(true)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
this.$store.dispatch('addWip', {icao: this.icao}); },
|
|
|
|
|
disableEdit () {
|
|
|
|
@ -221,6 +226,9 @@ You should have received a copy of the GNU General Public License along with FG
|
|
|
|
|
this.editing = false
|
|
|
|
|
this.$store.commit('SET_EDIT', false)
|
|
|
|
|
this.groundnetLayerGroup.eachLayer(l => {
|
|
|
|
|
if (typeof l.setInteractive === 'function') {
|
|
|
|
|
l.setInteractive(false)
|
|
|
|
|
}
|
|
|
|
|
l.disableEdit()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|