Set the displayProjection on the map.
authorTom Hughes <tom@compton.nu>
Thu, 9 Oct 2008 11:51:51 +0000 (11:51 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Oct 2008 11:51:51 +0000 (11:51 +0000)
public/javascripts/map.js

index d6349d69887b8513e64ea9364d6325eb2a540f3d..c80ed2242c8147db90177925af3db63eacee971f 100644 (file)
@@ -30,7 +30,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", {