X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4e0cf1c5d30d66fc8b3feeaebd27828c4576ffa0..8df391f41f3be43866e655dae5c6a52c7c0a2aa6:/app/views/browse/start.rjs?ds=inline diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index ccb39e4ff..b045bc9ea 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -2,7 +2,6 @@ page.replace_html :sidebar_title, t('browse.start_rjs.data_frame_title') page.replace_html :sidebar_content, :partial => 'start' 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("#{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()); } @@ -238,14 +237,14 @@ page << <