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 += '