X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bad28a6478fb5c96b438c18de1b1d90a456c7e6c..87e8cf3b5860509c0344cb34ee939ae73ea99c00:/app/assets/javascripts/openlayers.js.erb diff --git a/app/assets/javascripts/openlayers.js.erb b/app/assets/javascripts/openlayers.js.erb index b493a0517..66d991f82 100644 --- a/app/assets/javascripts/openlayers.js.erb +++ b/app/assets/javascripts/openlayers.js.erb @@ -1,6 +1,7 @@ //= require OpenLayers //= require OpenStreetMap //= require SimpleLayerSwitcher +//= require SimplePanZoom OpenLayers.Util.imageURLs = { "404.png": "<%= asset_path 'img/404.png' %>", @@ -34,3 +35,5 @@ OpenLayers.Util.origGetImageLocation = OpenLayers.Util.getImageLocation; OpenLayers.Util.getImageLocation = function(image) { return OpenLayers.Util.imageURLs[image] || OpenLayers.Util.origGetImageLocation(image); }; + +OpenLayers.Lang.setCode($('html').attr('lang'));