Fix label -- is ICAO when ident not present.
This commit is contained in:
parent
dfa62d0621
commit
fb6143596d
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user