From: Tom Hughes Date: Thu, 9 Oct 2008 11:51:51 +0000 (+0000) Subject: Set the displayProjection on the map. X-Git-Tag: live~7769 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/0b8449d2c95c52402b4a8cc7f49362820a752cc0?hp=63c2d9a5292e6b19a02bce9fdf80f93dea8a8347 Set the displayProjection on the map. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index d6349d698..c80ed2242 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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", {