]> 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 32953c4397213cfbd9dcc7e235ca40512d351ff2..e548a89a421a02e6f7ff8a34a02c0c0f4b1ff79b 100644 (file)
@@ -13,12 +13,6 @@ var nonamekeys = {
    'www.openstreetmap.net': '0bd1654141c85d30b9c2ccdb5302f2e4'
 };
 
-OpenLayers._getScriptLocation = function () {
-  // Should really have this file as an erb, so that this can return
-  // the real rails root
-   return "/openlayers/";
-}
-
 function createMap(divName, options) {
    options = options || {};
 
@@ -28,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",