Holdpoint nodes

This commit is contained in:
portree_kid
2020-02-06 20:06:38 +01:00
parent cbc5e14531
commit 00aac46a27
12 changed files with 136 additions and 14 deletions
+8
View File
@@ -9,6 +9,7 @@ const TaxiwaySegment = require('./TaxiwaySegment');
const parkingSpot = require('./ParkingSpot.js');
const runwayNode = require('./RunwayNode.js');
const holdNode = require('./HoldNode.js');
const store = require('../store');
@@ -81,6 +82,13 @@ exports.readGroundnetXML = function (fDir, icao, force) {
}
featureLookup[rNode.glueindex].push(rNode);
}
if (n.attr('holdPointType') !== 'none' && n.attr('holdPointType') !== null) {
var hNode = holdNode(n, layerGroup);
if (featureLookup[hNode.glueindex] === undefined) {
featureLookup[hNode.glueindex] = [];
}
featureLookup[hNode.glueindex].push(hNode);
}
//store.default.dispatch('setNode', n)
}).sort();