L.OSM.zoom()
.addTo(map);
- $("#changeset_list_map").on("resized", function () {
- map.invalidateSize();
- });
-
var group = L.featureGroup().addTo(map);
$("[data-changeset]").each(function () {
}
});
- var params = OSM.mapParams();
- if (params.bbox) {
- map.fitBounds([[params.minlat, params.minlon],
- [params.maxlat, params.maxlon]]);
- } else {
- map.fitBounds(group.getBounds());
- }
+ map.fitBounds(OSM.mapParams().bounds || group.getBounds());
});