[OpenLayers-Users] How to get mouse position to Lat / Lon for SPERICAL Mercator

Christopher Schmidt crschmidt at metacarta.com
Fri Feb 6 13:48:23 EST 2009


On Fri, Feb 06, 2009 at 08:44:20AM -0800, brancusi wrote:
> My question is - is there a built in function in openlayers that will easily
> allow me to convert the lonlat returned from the get from viewport function
> back into lat/lon. I've tried playing with the forwardMercator and
> inverseMercator functions but am not really sure what I'm doing even after
> reading the docs so I'd appreciate it if a regular user could point me in
> the right direction.

http://docs.openlayers.org/library/spherical_mercator#reprojecting-points-bounds

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list