Fix incorrect flagging of 000000 ICAO codes as mode A/C
This commit is contained in:
parent
f1428530c3
commit
4989111f67
2 changed files with 8 additions and 12 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue