Remove map data size warning (#592)
authorJohn Firebaugh <john.firebaugh@gmail.com>
Tue, 3 Dec 2013 19:03:10 +0000 (11:03 -0800)
committerTom Hughes <tom@compton.nu>
Tue, 3 Dec 2013 19:38:26 +0000 (19:38 +0000)
app/assets/javascripts/index/browse.js
app/assets/javascripts/leaflet.layers.js
config/locales/en.yml

index 2fa38bca1b8c24a233f55fce78e89047a577336d..47d8418b1ae1e9dd58da5a9e1eeb2f147fb068e0 100644 (file)
@@ -26,19 +26,6 @@ function initializeBrowse(map) {
     onSelect(e.layer);
   });
 
-  dataLayer.on('statechange', function (e) {
-    if (e.checked) {
-      if (e.disabled) {
-        var size = map.getBounds().getSize();
-        $('#browse_status').html(
-          $("<p class='warning'></p>")
-            .text(I18n.t("browse.start_rjs.unable_to_load_size", { max_bbox_size: OSM.MAX_REQUEST_AREA, bbox_size: size.toFixed(2) })));
-      } else {
-        $('#browse_status').empty();
-      }
-    }
-  });
-
   map.on('layeradd', function (e) {
     if (e.layer === dataLayer) {
       map.on("moveend", updateData);
index d6276919c892da8065691009ae6770a41d3d9917..bb00f716c8c28d969c3f90c05db97970b4f1aabb 100644 (file)
@@ -168,8 +168,6 @@ L.OSM.layers = function(options) {
               .trigger('change');
           }
 
-          layer.fire('statechange', {disabled: disabled, checked: checked});
-
           $(item).attr('class', disabled ? 'disabled' : '');
           item.attr('data-original-title', disabled ?
             I18n.t('javascripts.site.' + refName + '_zoom_in_tooltip') : '');
index 56679232099ebfd1c5ab1e5aecd2352537cdd50b..532d184be29a6e534a6d4df3a170ed5ff3951c90 100644 (file)
@@ -173,7 +173,6 @@ en:
     start_rjs:
       feature_warning: "Loading %{num_features} features, which may make your browser slow or unresponsive. Are sure you want to display this data?"
       load_data: "Load Data"
-      unable_to_load_size: "Unable to load map data, too large of an area (%{bbox_size}). Area must be smaller than %{max_bbox_size} square degrees."
       loading: "Loading..."
     tag_details:
       tags: "Tags"