[OpenLayers-Users] Transform between projections
Heidt, Christopher M.
CHRISTOPHER.M.HEIDT at saic.com
Fri Nov 21 13:52:23 EST 2008
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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] On Behalf Of Marten Andersson
Sent: Friday, November 21, 2008 9:44 AM
To: users at openlayers.org
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
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list