#73 pushback above non pushback
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user