]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/openlayers.js.erb
Move sidebar JS to application bundle
[rails.git] / app / assets / javascripts / openlayers.js.erb
index 70633d0ce2dbca348b76ec25b3d8cb00811ca35d..66d991f82039160658e322390a99b971d80362f8 100644 (file)
@@ -1,5 +1,7 @@
 //= require OpenLayers
 //= require OpenStreetMap
 //= require OpenLayers
 //= require OpenStreetMap
+//= require SimpleLayerSwitcher
+//= require SimplePanZoom
 
 OpenLayers.Util.imageURLs = {
     "404.png": "<%= asset_path 'img/404.png' %>",
 
 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.Util.getImageLocation = function(image) {
     return OpenLayers.Util.imageURLs[image] || OpenLayers.Util.origGetImageLocation(image);
 };
+
+OpenLayers.Lang.setCode($('html').attr('lang'));