X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a7f9ca32b7b946aa7e2dc7bb51c5ca5366b62438..0de6885a91e1740e3e2740287cb2d576de827844:/app/assets/javascripts/leaflet.map.js.erb diff --git a/app/assets/javascripts/leaflet.map.js.erb b/app/assets/javascripts/leaflet.map.js.erb index 1171390aa..35370ae99 100644 --- a/app/assets/javascripts/leaflet.map.js.erb +++ b/app/assets/javascripts/leaflet.map.js.erb @@ -91,7 +91,7 @@ L.OSM.Map = L.Map.extend({ }, getUrl: function(marker) { - var precision = zoomPrecision(this.getZoom()), + var precision = OSM.zoomPrecision(this.getZoom()), params = {}; if (marker && this.hasLayer(marker)) { @@ -148,6 +148,11 @@ L.OSM.Map = L.Map.extend({ } var params = {}; + var layers = this.getLayersCode().replace('M', ''); + + if (layers) { + params.layers = layers; + } if (marker && this.hasLayer(marker)) { params.m = '';