This commit is contained in:
Keith Paterson 2020-12-22 21:15:55 +01:00
parent 5aa33c6814
commit 956e347517
4 changed files with 8 additions and 3 deletions

View File

@ -29,6 +29,8 @@
return this.layerGroup return this.layerGroup
}, },
load (icao) { load (icao) {
this.$parent.mapObject.createPane('threshold-pane')
this.$parent.mapObject.getPane('threshold-pane').style.zIndex = 550
// Callback for add // Callback for add
this.layerGroup = readThresholdXML(this.$store.state.Settings.settings.airportsDirectory, icao, this.read) this.layerGroup = readThresholdXML(this.$store.state.Settings.settings.airportsDirectory, icao, this.read)
if (!this.layerGroup) { if (!this.layerGroup) {

View File

@ -24,6 +24,7 @@ You should have received a copy of the GNU General Public License along with FG
console.debug([LMap, LMarker, L, LEdit]) console.debug([LMap, LMarker, L, LEdit])
}, },
mounted () { mounted () {
}, },
beforeDestroy () { beforeDestroy () {
this.remove() this.remove()
@ -37,6 +38,8 @@ You should have received a copy of the GNU General Public License along with FG
return this.layerGroup return this.layerGroup
}, },
load (icao) { load (icao) {
this.$parent.mapObject.createPane('tower-pane')
this.$parent.mapObject.getPane('tower-pane').style.zIndex = 550
// Callback for add // Callback for add
this.layerGroup = readTowerXML(this.$store.state.Settings.settings.airportsDirectory, icao, this.read) this.layerGroup = readTowerXML(this.$store.state.Settings.settings.airportsDirectory, icao, this.read)
if (!this.layerGroup) { if (!this.layerGroup) {

View File

@ -74,7 +74,7 @@ var threshold = function (n, options) {
var latlon = convert(n.find('lat/text()').text() + " " + n.find('lon/text()').text()); var latlon = convert(n.find('lat/text()').text() + " " + n.find('lon/text()').text());
var heading = n.find('hdg-deg/text()').text(); var heading = n.find('hdg-deg/text()').text();
var marker = new L.Threshold([latlon.decimalLatitude, latlon.decimalLongitude], {heading: heading}); var marker = new L.Threshold([latlon.decimalLatitude, latlon.decimalLongitude], {heading: heading, pane: 'threshold-pane'});
return marker; return marker;
} }

View File

@ -72,7 +72,7 @@ L.TowerMarker.addInitHook(function(){
//Builds a marker for a ai or multiplayer aircraft //Builds a marker for a ai or multiplayer aircraft
var tower = function (n, options) { var tower = function (n, options) {
var latlon = convert(n.find('lat/text()').text() + " " + n.find('lon/text()').text()); var latlon = convert(n.find('lat/text()').text() + " " + n.find('lon/text()').text());
return new L.TowerMarker([latlon.decimalLatitude, latlon.decimalLongitude], {heading: 0}); return new L.TowerMarker([latlon.decimalLatitude, latlon.decimalLongitude], {heading: 0, pane: 'tower-pane'});
} }
module.exports = tower; module.exports = tower;