]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Shut up libxml's "Must specify a string with one or more characters" error on relatio...
[rails.git] / public / javascripts / map.js
index 3b05b1d4a962861a53388a78190b72a97eeb1bef..a25564f0d97dd1d282cd73f4b71e3544ef40164a 100644 (file)
@@ -13,6 +13,8 @@ var nonamekeys = {
 };
 
 OpenLayers._getScriptLocation = function () {
+  // Should really have this file as an erb, so that this can return 
+  // the real rails root
    return "/openlayers/";
 }
 
@@ -142,7 +144,7 @@ function setMapExtent(extent) {
    map.zoomToExtent(extent.clone().transform(epsg4326, map.getProjectionObject()));
 }
 
-function getMapExtent(extent) {
+function getMapExtent() {
    return map.getExtent().clone().transform(map.getProjectionObject(), epsg4326);
 }