This commit is contained in:
Keith Paterson 2021-01-08 09:13:56 +01:00
parent 2d94425de5
commit d317bd049c
2 changed files with 11 additions and 11 deletions

View File

@ -22,7 +22,6 @@ You should have received a copy of the GNU General Public License along with FG
import L2 from 'leaflet-textpath' import L2 from 'leaflet-textpath'
import Vue from 'vue' import Vue from 'vue'
import { MessageBox } from 'element-ui'; import { MessageBox } from 'element-ui';
import { EventBus } from './event-bus.js';
const turf = require('@turf/turf') const turf = require('@turf/turf')
@ -152,11 +151,10 @@ You should have received a copy of the GNU General Public License along with FG
} }
}) })
console.log(this.groundnetLayerGroup.maxId) console.log(this.groundnetLayerGroup.maxId)
this.buildLookup()
this.groundnetLayerGroup.addTo(this.$parent.mapObject) this.groundnetLayerGroup.addTo(this.$parent.mapObject)
this.icao = icao this.icao = icao
console.log(EventBus)
EventBus.$emit('i-got-clicked', 1);
}, },
visible (feature) { visible (feature) {
let bounds = this.$store.state.Settings.bounds let bounds = this.$store.state.Settings.bounds

View File

@ -34,6 +34,7 @@
}, },
methods: { methods: {
editedThreshold () { editedThreshold () {
if (this.$store.state.Editable.data.threshold) {
var rwy = this.$store.state.Editable.data.threshold.runway var rwy = this.$store.state.Editable.data.threshold.runway
var displacement = this.$store.state.Editable.data.threshold.displacement var displacement = this.$store.state.Editable.data.threshold.displacement
this.layerGroup.eachLayer(l => { this.layerGroup.eachLayer(l => {
@ -43,6 +44,7 @@
} }
} }
}) })
}
}, },
getLayer () { getLayer () {
return this.layerGroup return this.layerGroup