]> git.openstreetmap.org Git - rails.git/commitdiff
Fix export tab bugs
authorJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 1 Jul 2013 19:57:06 +0000 (15:57 -0400)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Thu, 18 Jul 2013 17:45:16 +0000 (10:45 -0700)
app/assets/javascripts/index/export.js
app/assets/javascripts/leaflet.layers.js

index 1f624f125f60c5a61471c6d59a8fe2b03a453a30..417dfabd35be892cdf5e9ad391083d30c35de215 100644 (file)
@@ -203,7 +203,7 @@ function initializeExport(map) {
 
       var zoom = map.getBoundsZoom(bounds);
 
-      var layers = getMapLayers(map);
+      var layers = map.getLayersCode();
 
       var text = I18n.t('export.start_rjs.view_larger_map');
       var escaped = [];
index 242f762857180c71046383373f907435d64216aa..8653a0921a3ade64badecb96ff244f723e3cd48c 100644 (file)
@@ -92,6 +92,7 @@ L.OSM.layers = function(options) {
             map.removeLayer(other);
           }
         });
+        map.fire('baselayerchange', {layer: layer});
       });
 
       map.on('layeradd layerremove', function() {