[OpenLayers-Dev] OpenLayers.getPixelFromLonLat don't return the correct values

waelinsat waelinsat at gmail.com
Tue May 14 13:57:29 PDT 2013


Hi All; 

I just need some help. It seems like the OpenLayers.getPixelFromLonLat don't
return a correct values, there's always a little difference. 

For example : 

map.getLonLatFromPixel( map.getPixelFromLonLat( new
OpenLayers.LonLat(9.55,35.23) ) ) in a normal case returns the same long/lat
which is (9.55,35.23) but this is not the result, i always had values like
9.59874, 35.60154 ... i know that it's not too far but i should resolve it. 

There 's any solution for this ? 

regards, 



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/OpenLayers-getPixelFromLonLat-don-t-return-the-correct-values-tp5053241.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list