Merge remote-tracking branch 'csfa/map_enhancements' into dev
This commit is contained in:
commit
f8a2896e76
4 changed files with 14 additions and 13 deletions
|
|
@ -217,14 +217,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