From 32c76beaa27ff42c7a47c0193fe8e301683c0d19 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 10 Jul 2019 22:18:16 +0200 Subject: [PATCH] improved fullscreen layout --- htdocs/map.css | 3 ++- htdocs/map.html | 1 + htdocs/map.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/map.css b/htdocs/map.css index 55cb4aa..a982e1b 100644 --- a/htdocs/map.css +++ b/htdocs/map.css @@ -1,6 +1,7 @@ -html, body { +html, body, .openwebrx-map { width: 100%; height: 100%; + margin: 0; } h3 { diff --git a/htdocs/map.html b/htdocs/map.html index 056cc14..9e4b25b 100644 --- a/htdocs/map.html +++ b/htdocs/map.html @@ -9,5 +9,6 @@ +
diff --git a/htdocs/map.js b/htdocs/map.js index 56aa29b..6ca108c 100644 --- a/htdocs/map.js +++ b/htdocs/map.js @@ -121,7 +121,7 @@ case "config": var config = json.value; $.getScript("https://maps.googleapis.com/maps/api/js?key=" + config.google_maps_api_key).done(function(){ - map = new google.maps.Map($('body')[0], { + map = new google.maps.Map($('.openwebrx-map')[0], { center: { lat: config.receiver_gps[0], lng: config.receiver_gps[1]