]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Fixing the error messages
[rails.git] / public / javascripts / map.js
index 3e6d687b0faac740c10d212c637e4ca9870af9e4..c2ddf9c391fb7cb461a3c3f4aed48b933638989e 100644 (file)
@@ -13,7 +13,9 @@ var nonamekeys = {
 };
 
 OpenLayers._getScriptLocation = function () {
-   return "openlayers/";
+  // Should really have this file as an erb, so that this can return 
+  // the real rails root
+   return "/openlayers/";
 }
 
 function createMap(divName, options) {