Fix label -- is ICAO when ident not present.

This commit is contained in:
Nick Foster 2013-07-22 22:11:13 -07:00
parent dfa62d0621
commit fb6143596d

View File

@ -85,9 +85,10 @@ def html_template(my_position, json_file):
//scaledSize: new google.maps.Size(4608,126) //scaledSize: new google.maps.Size(4608,126)
}; };
identstr = airplanes[airplane].ident; if (airplanes[airplane].ident.length != 8) {
if (identstr === "" || !identstr) { identstr = airplane;
identstr = airplanes[airplane].icao; } else {
identstr = airplanes[airplane].ident;
}; };
var planeOptions = { var planeOptions = {