-$(document).ready(function () {
+function initializeChangesets(map) {
var changesets = [], rects = {};
- var map = createMap("changeset_list_map");
+
var group = L.featureGroup().addTo(map);
$("[data-changeset]").each(function () {
unHighlightChangeset($(this).data("changeset").id);
}
});
-
- var params = OSM.mapParams();
- if (params.bbox) {
- map.fitBounds([[params.minlat, params.minlon],
- [params.maxlat, params.maxlon]]);
- } else {
- map.fitBounds(group.getBounds());
- }
-});
+}