[OpenLayers-Users] What is the meaning of the result of getLonLatFromPixel ?

huit_six huit_six13 at hotmail.com
Wed Sep 1 15:20:21 EDT 2010


I tried that sort of conversion :
                var point = map.getLonLatFromPixel(position);
		locDisp.innerHTML = (point.lat / 40000000 * 360 ).toFixed(4)+ ', ' +
(point.lon / 40065035.535 * 180).toFixed(4);
which seem to give results  in the good ranges.
But is it really the good way of conversion ? And why the latitude and
longitude would be given in meters ? Isn't it weird ? Have I missed
something ?

Thank you !
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/What-is-the-meaning-of-the-result-of-getLonLatFromPixel-tp5488414p5488456.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list