- if (bounds.getWidth() * bounds.getHeight() > #{APP_CONFIG['max_request_area']}) {
- $("format_osm").disabled = true;
- $("format_osm").checked = false;
- $("export_osm").style.display = "none";
+ if (bounds.getWidth() * bounds.getHeight() > #{MAX_REQUEST_AREA}) {
+ $("export_osm_too_large").style.display = "block";