#109 Fixed
This commit is contained in:
parent
2d94425de5
commit
d317bd049c
@ -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 Vue from 'vue'
|
||||
import { MessageBox } from 'element-ui';
|
||||
import { EventBus } from './event-bus.js';
|
||||
|
||||
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)
|
||||
this.buildLookup()
|
||||
|
||||
this.groundnetLayerGroup.addTo(this.$parent.mapObject)
|
||||
this.icao = icao
|
||||
console.log(EventBus)
|
||||
EventBus.$emit('i-got-clicked', 1);
|
||||
},
|
||||
visible (feature) {
|
||||
let bounds = this.$store.state.Settings.bounds
|
||||
|
@ -34,15 +34,17 @@
|
||||
},
|
||||
methods: {
|
||||
editedThreshold () {
|
||||
var rwy = this.$store.state.Editable.data.threshold.runway
|
||||
var displacement = this.$store.state.Editable.data.threshold.displacement
|
||||
this.layerGroup.eachLayer(l => {
|
||||
if (l instanceof L.Threshold) {
|
||||
if (l.rwy === rwy) {
|
||||
l.setDisplacement(displacement)
|
||||
if (this.$store.state.Editable.data.threshold) {
|
||||
var rwy = this.$store.state.Editable.data.threshold.runway
|
||||
var displacement = this.$store.state.Editable.data.threshold.displacement
|
||||
this.layerGroup.eachLayer(l => {
|
||||
if (l instanceof L.Threshold) {
|
||||
if (l.rwy === rwy) {
|
||||
l.setDisplacement(displacement)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
getLayer () {
|
||||
return this.layerGroup
|
||||
|
Loading…
Reference in New Issue
Block a user