[OpenLayers-Users] get lonlat from current zoom map.getExtent()

Luis Ortiz (lortiz) lortiz at compegps.com
Fri Apr 3 06:42:01 EDT 2009


Hi,

I would like to know the bound coordinates in latlong

i have this source code

//map options
var options = {
        eventListeners: {
            "zoomend": mapEvent
        },
        projection: new OpenLayers.Projection("EPSG:4326"),
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        numZoomLevels: 18,
        controls: []               
    };

map = new OpenLayers.Map("map", options);

map.getExtent().toBBOX()


and i get coordinates in meters, but i would like to get in Lat/Lon


Thank you

-- 

*Luis Ortiz*
Technical Department

tel.: 902 512 260
int. tel.: +34 933 968 068
fax: +34 937 959 605
mobile: +34 687 703 541
skype: luis.compegps
email: lortiz at compegps.com <mailto:lortiz at compegps.com>

www.compegps.com <http://www.compegps.com>
www.twonav.com <http://www.twonav.com>
	
CompeGPS Team SL
Carrer d'en Draper, 13
08350 Arenys de Mar
Barcelona - Spain

UTM 31T X 461512 Y 4603162
(WGS 84)

-------------- next part --------------
Skipped content of type multipart/related


More information about the Users mailing list