[OSM-dev] Openlayers cyclemap permalinks

Christopher Schmidt crschmidt at metacarta.com
Sat May 17 23:01:05 BST 2008

On Sat, May 17, 2008 at 09:47:56PM +0100, OJ W wrote:
> The cycle map seems to have the openlayers permalink bug [1] - is it
> possible to apply the latest openlayers corrections so that it uses
> lat/long in permalinks?

It's not a bug.

> Can someone from OL also reply to this, saying how to do the correction?

Upgrade to 2.6, add 
 displayProjection: new OpenLayers.Projection("EPSG:4326")

to the map creation options.

> [1] http://www.gravitystorm.co.uk/osm/?zoom=13&lat=6781599.86453&lon=-126905.18782&layers=B00
> 6781599 degrees north is not the usual way of representing positions

No, But like all things OpenLayers, 'lat' means 'units of y', not
'degrees of latitude'. 

Christopher Schmidt

More information about the dev mailing list