X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1997f1f662dddc8fcc9997ef301dacd9f73e075b..abc5b2d7b4bf08b29074e7bb152d48b904989443:/app/views/browse/start.rjs diff --git a/app/views/browse/start.rjs b/app/views/browse/start.rjs index b045bc9ea..d4ef1f530 100644 --- a/app/views/browse/start.rjs +++ b/app/views/browse/start.rjs @@ -25,10 +25,10 @@ page << < #{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 })); + if (size > #{MAX_REQUEST_AREA}) { + setStatus(i18n("#{I18n.t('browse.start_rjs.unable_to_load_size', :max_bbox_size => MAX_REQUEST_AREA)}", { bbox_size: size })); } else { loadGML("/api/#{API_VERSION}/map?bbox=" + projected.toBBOX()); }