If your map options set your projection and displayProjection:
{
projection: new OpenLayers.Projection("EPSG:900913"),
displayProjection: new OpenLayers.Projection("EPSG:4326")
}
Then you have to transform all data going in and out.
new OpenLayers.Bounds(-140,10,-51,52).transform(map.displayProjection,
map.projection)
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marten Andersson
Sent: Friday, November 21, 2008 9:44 AM
To: [email protected]
Subject: [OpenLayers-Users] Transform between projections
Hello folks!
I have a map that I show in the swedish projection EPSG:2400, now I need to
reproject the map bounds this into EPSG:4326.
I can't get the transformation to work at all and really don't understand the
documentation for this..
Do any of you guys (or girls) that have a working example that transforms
bounds (or a point) from one projection to an other?
Thanks!
//MÃ¥rten
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users