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)
};
if (airplanes[airplane].ident.length != 8) {
identstr = airplane;
} else {
identstr = airplanes[airplane].ident;
if (identstr === "" || !identstr) {
identstr = airplanes[airplane].icao;
};
var planeOptions = {