]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
some more putway fixes - this actually creates new ways with 0.6 Potlatch now
[rails.git] / public / javascripts / map.js
index d6349d69887b8513e64ea9364d6325eb2a540f3d..fcf34336f7dbb23d55aa1eb151e8dea967967252 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/";
 }
 
@@ -30,7 +32,8 @@ function createMap(divName, options) {
       ],
       units: "m",
       maxResolution: 156543.0339,
-      numZoomLevels: 20
+      numZoomLevels: 20,
+      displayProjection: new OpenLayers.Projection("EPSG:4326")
    });
 
    var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", {