improved fullscreen layout
This commit is contained in:
parent
cb0b950d34
commit
32c76beaa2
@ -1,6 +1,7 @@
|
|||||||
html, body {
|
html, body, .openwebrx-map {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
@ -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>
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user