X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4fb53e9619c97a62fb9ff38eab399b400a18e510..d6a8aaa3690a86820ecc6198f1d5455d8f6cbbe5:/app/assets/javascripts/openlayers.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/openlayers.js.erb b/app/assets/javascripts/openlayers.js.erb index 70633d0ce..66d991f82 100644 --- a/app/assets/javascripts/openlayers.js.erb +++ b/app/assets/javascripts/openlayers.js.erb @@ -1,5 +1,7 @@ //= require OpenLayers //= require OpenStreetMap +//= require SimpleLayerSwitcher +//= require SimplePanZoom OpenLayers.Util.imageURLs = { "404.png": "<%= asset_path 'img/404.png' %>", @@ -33,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'));