]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/changeset/_map.html.erb
Set OpenLayers lang unobtrusively
[rails.git] / app / views / changeset / _map.html.erb
index d20813d6205f7a883a95a08d65923b7166c6c060..3357057b17e0b91c033b05ef65f5b0781de1de7f 100644 (file)
@@ -5,8 +5,6 @@
 </div>
 
 <script type="text/javascript">
-  OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
-
   var highlight;
 
   function highlightChangeset(id) {
@@ -42,7 +40,7 @@
       controls: [
         new OpenLayers.Control.Navigation(),
         new OpenLayers.Control.Zoom(),
-        new OpenLayers.Control.PanZoomBar()
+        new OpenLayers.Control.SimplePanZoom()
       ]
     });