X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f4dba81b6460be14cacbe067956cb74b9743a18d..38bd2586aeafc0256e83485cc0152815202bc44f:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 32953c439..e548a89a4 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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",