#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 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
|
||||||
|
@ -34,15 +34,17 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
editedThreshold () {
|
editedThreshold () {
|
||||||
var rwy = this.$store.state.Editable.data.threshold.runway
|
if (this.$store.state.Editable.data.threshold) {
|
||||||
var displacement = this.$store.state.Editable.data.threshold.displacement
|
var rwy = this.$store.state.Editable.data.threshold.runway
|
||||||
this.layerGroup.eachLayer(l => {
|
var displacement = this.$store.state.Editable.data.threshold.displacement
|
||||||
if (l instanceof L.Threshold) {
|
this.layerGroup.eachLayer(l => {
|
||||||
if (l.rwy === rwy) {
|
if (l instanceof L.Threshold) {
|
||||||
l.setDisplacement(displacement)
|
if (l.rwy === rwy) {
|
||||||
|
l.setDisplacement(displacement)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
})
|
}
|
||||||
},
|
},
|
||||||
getLayer () {
|
getLayer () {
|
||||||
return this.layerGroup
|
return this.layerGroup
|
||||||
|
Loading…
Reference in New Issue
Block a user