update Di 28. Apr 12:01:01 CEST 2020

This commit is contained in:
Robert Richter 2020-04-28 12:01:01 +02:00
parent f728d96f25
commit 0276ea3a59

View File

@ -410,7 +410,9 @@ socket.on('io.neuerEinsatz', function(data) {
} else {
geojson = L.geoJSON(JSON.parse(data.wgs84_area));
geojson.addTo(map);
map.fitBounds(geojson.getBounds());
var bounds =geojson.getBounds();
console.log(bounds);
console.log(map.fitBounds(bounds));
};