#73 pushback above non pushback

This commit is contained in:
Keith Paterson
2021-01-02 22:21:09 +01:00
parent 84fd39c3b5
commit e6d473c73e
2 changed files with 12 additions and 1 deletions
+6
View File
@@ -46,6 +46,12 @@ You should have received a copy of the GNU General Public License along with FG
// console.log(LSymbol)
},
mounted () {
this.$parent.mapObject.createPane('pushback-pane')
this.$parent.mapObject.getPane('pushback-pane').style.zIndex = 512
this.$parent.mapObject.createPane('route-pane')
this.$parent.mapObject.getPane('route-pane').style.zIndex = 511
this.selectionLayerGroup = L.layerGroup();
this.selectionLayerGroup.addTo(this.$parent.mapObject)
this.$store.watch(
+6 -1
View File
@@ -176,7 +176,12 @@ exports.readGroundnetXML = function (fDir, icao, force) {
var beginlatlon = convert(beginNode.attr('lat') + " " + beginNode.attr('lon'));
var endlatlon = convert(endNode.attr('lat') + " " + endNode.attr('lon'));
var polyline = new L.Polyline([[beginlatlon.decimalLatitude, beginlatlon.decimalLongitude], [endlatlon.decimalLatitude, endlatlon.decimalLongitude]], { attributes: {} }).addTo(layerGroup);
var pane = 'route-pane';
if(n.attr('isPushBackRoute') === '1') {
pane = 'pushback-pane';
}
var polyline = new L.Polyline([[beginlatlon.decimalLatitude, beginlatlon.decimalLongitude], [endlatlon.decimalLatitude, endlatlon.decimalLongitude]], { pane: pane, attributes: {} }).addTo(layerGroup);
extendTaxiSegment(polyline);
polyline.addListeners();
polyline._latlngs[0].attributes = {};