diff --git a/dump1090.c b/dump1090.c index 493d662..257f8a6 100644 --- a/dump1090.c +++ b/dump1090.c @@ -838,7 +838,7 @@ int main(int argc, char **argv) { } else { if (Modes.filename[0] == '-' && Modes.filename[1] == '\0') { Modes.fd = STDIN_FILENO; - } else if ((Modes.fd = open(Modes.filename,O_RDONLY)) == -1) { + } else if ((Modes.fd = open(Modes.filename, (O_RDONLY | O_BINARY))) == -1) { perror("Opening data file"); exit(1); } diff --git a/public_html/gmap.html b/public_html/gmap.html index 80afe02..96f412a 100644 --- a/public_html/gmap.html +++ b/public_html/gmap.html @@ -3,7 +3,7 @@ - + diff --git a/public_html/script.js b/public_html/script.js index 05d29b7..ed2a4dc 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -135,8 +135,12 @@ function initialize() { center: new google.maps.LatLng(CenterLat, CenterLon), zoom: ZoomLvl, mapTypeId: google.maps.MapTypeId.ROADMAP, + mapTypeControl: true, + streetViewControl: false, mapTypeControlOptions: { - mapTypeIds: mapTypeIds + mapTypeIds: mapTypeIds, + position: google.maps.ControlPosition.TOP_LEFT, + style: google.maps.MapTypeControlStyle.DROPDOWN_MENU } }; @@ -304,7 +308,7 @@ function refreshSelected() { html += 'Track: ' if (selected && selected.vTrack) { - html += selected.track + ' (' + normalizeTrack(selected.track, selected.vTrack)[1] +')'; + html += selected.track + '°' + ' (' + normalizeTrack(selected.track, selected.vTrack)[1] +')'; } else { html += 'n/a'; } diff --git a/public_html/style.css b/public_html/style.css index 63d0a45..86cb053 100644 --- a/public_html/style.css +++ b/public_html/style.css @@ -14,10 +14,9 @@ div#SpecialSquawkWarning { position: absolute; bottom: 25px; right: 430px; borde table#optionsTabs { width: 100%; font-size: small; font-family: monospace; background-color: #ddd; border: 1px; border-color: #000000;} -#tableinfo { font-size: x-small; font-family: monospace; } -#sudo_buttons { font-size: x-small; font-family: monospace; } +#tableinfo, #sudo_buttons { font-size: x-small; font-family: monospace; } -.vPosition { font-weight: bold; background-color: #f5fff5; } +.vPosition { font-weight: bold; background-color: #d5ffd5; } .squawk7500 { font-weight: bold; background-color: #ff5555; } .squawk7600 { font-weight: bold; background-color: #00ffff; } .squawk7700 { font-weight: bold; background-color: #ffff00; }