"Luis Ortiz (lortiz)" <lor...@compegps.com> schrieb:
> map = new OpenLayers.Map("map", options);
> 
> map.getExtent().toBBOX()
> 
> and i get coordinates in meters, but i would like to get in Lat/Lon

You need to transform the extent back from EPSG900913 to EPSG4346:

var EPSG4326 = new OpenLayers.Projection("EPSG:4326");
var EPSG900913 = new OpenLayers.Projection("EPSG:900913");
var bounds = map.getExtent().clone();
bounds = bounds.transform(EPSG900913, EPSG4326);
bbox = bounds.toBBOX();

I found reading the wiki page on Spherical Mercator really helpful:
http://docs.openlayers.org/library/spherical_mercator.html

Cheers,
Christoph
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to