X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/91aaae1933183fc9e7311abd3b815b5b74ce2d3c..cd2f19565050ab86d6b437b23261fb891c126e3b:/app/views/browse/start.rjs?ds=sidebyside diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index c5247066e..220295663 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -76,7 +76,7 @@ page << < 0.25) { - setStatus("#{I18n.t('browse.start_rjs.unable_to_load')} " + size + " #{I18n.t('browse.start_rjs.must_be_smaller')}"); + if (size > #{APP_CONFIG['max_request_area']}) { + setStatus(i18n("#{I18n.t('browse.start_rjs.unable_to_load_size', :max_bbox_size => APP_CONFIG['max_request_area'])}", { bbox_size: size })); } else { loadGML("/api/#{API_VERSION}/map?bbox=" + projected.toBBOX()); } @@ -262,7 +262,7 @@ page << <