Chris,
Try using layerDetails.bbox.transform(new
OpenLayers.Projection('EPSG:4326'),new OpenLayers.Projection('EPSG:3857'));
If EPSG:3857 doesn't work, use EPSG: 900913.
Jerome Wendell
From: [email protected]
[mailto:[email protected]] On Behalf Of Chris Jackson
Sent: Sunday, December 08, 2013 5:17 PM
To: [email protected]
Subject: [OpenLayers-Users] transformations
Hi all
I am trying to transform a bounding box from EPSG:4326 to EPSG:3857 (map
projection).
bbox = layerDetails.bbox.transform(new OpenLayers.Projection('EPSG:4326'),
map.getProjectionObject());
This seems to just fall into a heap!
bbox = layerDetails.bbox works ok, just returns co-ordinates in the layer
projection EPSG:4326.
Am I missing a step?
Thanks
Chris
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users