]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Merge branch 'master' into openstreetbugs
[rails.git] / app / assets / javascripts / map.js.erb
index c97dc76c324330fced074c3682724174a7cf188f..8aa9868b32441b9b7f6caae419a637fa6db027bc 100644 (file)
@@ -71,6 +71,12 @@ function createMap(divName, options) {
    });
    map.addLayer(markers);
 
+   map.dataLayer = new OpenLayers.Layer(I18n.t('browse.start_rjs.data_layer_name'), {
+     visibility: false,
+     displayInLayerSwitcher: false
+   });
+   map.addLayer(map.dataLayer);
+
    $("#" + divName).on("resized", function () {
      map.updateSize();
    });