harmonize padding

This commit is contained in:
Joerg Lehmann 2021-06-09 10:07:40 +02:00
parent 2830a648a5
commit 40cf8cfabf
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ function refreshDatapoints(deveui, start, stop) {
lcontrol = L.control.layers({}).addTo(map); lcontrol = L.control.layers({}).addTo(map);
lcontrol.addOverlay(allmarkers, 'alle Positionen anzeigen'); lcontrol.addOverlay(allmarkers, 'alle Positionen anzeigen');
bounds = new L.LatLngBounds([[mydata['max_lat'], mydata['max_lon']], [mydata['min_lat'], mydata['min_lon']]]); bounds = new L.LatLngBounds([[mydata['max_lat'], mydata['max_lon']], [mydata['min_lat'], mydata['min_lon']]]);
map.fitBounds(bounds, { padding: [15, 15] }); map.fitBounds(bounds, { padding: [20, 20] });
marker.bindPopup(myhtml).openPopup(); marker.bindPopup(myhtml).openPopup();
} else { } else {
$('#map').hide(); $('#map').hide();