Fixed TypeError: L.aiLayer is not a function error in Phi
This commit is contained in:
parent
eba08fa10c
commit
945dc6bf30
1 changed files with 2 additions and 3 deletions
|
@ -41,8 +41,7 @@
|
||||||
var l1 = feature.properties.callsign,
|
var l1 = feature.properties.callsign,
|
||||||
l2 = feature.properties.heading + 'T ' + feature.properties.speed + 'KTAS ' +
|
l2 = feature.properties.heading + 'T ' + feature.properties.speed + 'KTAS ' +
|
||||||
formatFL(feature.geometry.coordinates[2]),
|
formatFL(feature.geometry.coordinates[2]),
|
||||||
l3 = feature.properties.departureAirportId + ' -> ' + feature.properties.arrivalAirportId,
|
l3 = feature.properties.departureAirportId + ' -> ' + feature.properties.arrivalAirportId;
|
||||||
l4 = ;
|
|
||||||
|
|
||||||
|
|
||||||
aiMarker = L.aiAircraftMarker(latlng, { className: AITypeToCssClassMap[feature.properties.type] } );
|
aiMarker = L.aiAircraftMarker(latlng, { className: AITypeToCssClassMap[feature.properties.type] } );
|
||||||
|
@ -144,7 +143,7 @@
|
||||||
types.forEach(function(type) {
|
types.forEach(function(type) {
|
||||||
root.getChildren(type).forEach(function(child) {
|
root.getChildren(type).forEach(function(child) {
|
||||||
|
|
||||||
if (!child.getNode("valid").getValue())
|
if (!child.getNode("valid") || !child.getNode("valid").getValue())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var path = child.getPath();
|
var path = child.getPath();
|
||||||
|
|
Loading…
Reference in a new issue