X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/4fb53e9619c97a62fb9ff38eab399b400a18e510..bd8713f42b4a5196cf89e8270c57322742ba1f5e:/app/assets/javascripts/openlayers.js.erb 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'));