]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Use a PanZoom control on small screens instead of a PanZoomBar control.
[rails.git] / public / javascripts / map.js
index a25ab1614d655adcca53d1299c14d8f717a23b9d..e548a89a421a02e6f7ff8a34a02c0c0f4b1ff79b 100644 (file)
@@ -22,6 +22,7 @@ function createMap(divName, options) {
          new OpenLayers.Control.Attribution(),
          new OpenLayers.Control.LayerSwitcher(),
          new OpenLayers.Control.Navigation(),
+         new OpenLayers.Control.PanZoom(),
          new OpenLayers.Control.PanZoomBar()
       ],
       units: "m",