Set the displayProjection on the map.

This commit is contained in:
Tom Hughes 2008-10-09 11:51:51 +00:00
parent 63c2d9a529
commit 0b8449d2c9

View file

@ -30,7 +30,8 @@ function createMap(divName, options) {
], ],
units: "m", units: "m",
maxResolution: 156543.0339, maxResolution: 156543.0339,
numZoomLevels: 20 numZoomLevels: 20,
displayProjection: new OpenLayers.Projection("EPSG:4326")
}); });
var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", { var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", {