update Di 28. Apr 12:01:01 CEST 2020
This commit is contained in:
parent
f728d96f25
commit
0276ea3a59
@ -410,7 +410,9 @@ socket.on('io.neuerEinsatz', function(data) {
|
|||||||
} else {
|
} else {
|
||||||
geojson = L.geoJSON(JSON.parse(data.wgs84_area));
|
geojson = L.geoJSON(JSON.parse(data.wgs84_area));
|
||||||
geojson.addTo(map);
|
geojson.addTo(map);
|
||||||
map.fitBounds(geojson.getBounds());
|
var bounds =geojson.getBounds();
|
||||||
|
console.log(bounds);
|
||||||
|
console.log(map.fitBounds(bounds));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user