Fix incorrect flagging of 000000 ICAO codes as mode A/C

This commit is contained in:
Carlos Salaverria 2016-09-14 13:10:20 -05:00
parent f1428530c3
commit 4989111f67
2 changed files with 8 additions and 12 deletions

View file

@ -214,14 +214,10 @@ PlaneObject.prototype.getDataSource = function() {
return 'adsb';
}
var emptyHexRegex = /^0*$/;
// No position and no ICAO hex code - Mode A/C
if (emptyHexRegex.test(this.icao)) {
return 'mode_ac';
}
// No position and ICAO hex code present - Mode S
// Otherwise Mode S
return 'mode_s';
// TODO: add support for Mode A/C
};
PlaneObject.prototype.getMarkerColor = function() {