X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ff77d9d3d7960ae993bf5ef97a66dbb10f2496e..7e3ca66fffec0b44efe676760650994b719609e1:/app/assets/javascripts/map.js.erb diff --git a/app/assets/javascripts/map.js.erb b/app/assets/javascripts/map.js.erb index c97dc76c3..8aa9868b3 100644 --- a/app/assets/javascripts/map.js.erb +++ b/app/assets/javascripts/map.js.erb @@ -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(); });