X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4e0cf1c5d30d66fc8b3feeaebd27828c4576ffa0..3622db1665a51795cd381745b59693d88d66f699:/app/views/browse/start.rjs?ds=sidebyside diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index ccb39e4ff..8eaf90070 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -131,7 +131,7 @@ page << < '{{num_features}}')}", { num_features: browseFeatureList.length }))); div.appendChild(p); var input = document.createElement("input"); @@ -186,8 +186,8 @@ page << < 0.25) { - setStatus("#{I18n.t('browse.start_rjs.unable_to_load')} " + size + " #{I18n.t('must_be_smaller')}"); + if (size > #{APP_CONFIG['max_request_area']}) { + setStatus("#{I18n.t('browse.start_rjs.unable_to_load')} " + size + " #{I18n.t('browse.start_rjs.must_be_smaller')}"); } else { loadGML("/api/#{API_VERSION}/map?bbox=" + projected.toBBOX()); } @@ -245,7 +245,7 @@ page << <