improved fullscreen layout

This commit is contained in:
Jakob Ketterl 2019-07-10 22:18:16 +02:00
parent cb0b950d34
commit 32c76beaa2
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
html, body { html, body, .openwebrx-map {
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: 0;
} }
h3 { h3 {

View File

@ -9,5 +9,6 @@
<meta charset="utf-8"> <meta charset="utf-8">
</head> </head>
<body> <body>
<div class="openwebrx-map"></div>
</body> </body>
</html> </html>

View File

@ -121,7 +121,7 @@
case "config": case "config":
var config = json.value; var config = json.value;
$.getScript("https://maps.googleapis.com/maps/api/js?key=" + config.google_maps_api_key).done(function(){ $.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: { center: {
lat: config.receiver_gps[0], lat: config.receiver_gps[0],
lng: config.receiver_gps[1] lng: config.receiver_gps[1]