$("#maxlat").val(bounds.getNorth().toFixed(precision));
$("#export_overpass").attr("href",
$("#maxlat").val(bounds.getNorth().toFixed(precision));
$("#export_overpass").attr("href",
$("#minlon").val() + "," + $("#minlat").val() + "," +
$("#maxlon").val() + "," + $("#maxlat").val());
}
$("#minlon").val() + "," + $("#minlat").val() + "," +
$("#maxlon").val() + "," + $("#maxlat").val());
}
- page.pushstate = page.popstate = function(path) {
+ function checkSubmit(e) {
+ if (getBounds().getSize() > OSM.MAX_REQUEST_AREA) e.preventDefault();
+ }
+
+ page.pushstate = page.popstate = function (path) {
$("#export_tab").addClass("current");
OSM.loadSidebarContent(path, page.load);
};
$("#export_tab").addClass("current");
OSM.loadSidebarContent(path, page.load);
};
map
.addLayer(locationFilter)
.on("moveend", update);
$("#maxlat, #minlon, #maxlon, #minlat").change(boundsChanged);
$("#drag_box").click(enableFilter);
map
.addLayer(locationFilter)
.on("moveend", update);
$("#maxlat, #minlon, #maxlon, #minlat").change(boundsChanged);
$("#drag_box").click(enableFilter);