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

jezaustin jezaustin at gmail.com
Wed May 15 04:23:27 PDT 2013


Have you tried using map.getLayerPxFromViewPortPx? I found I needed this in
my click handlers.

map.getLonLatFromPixel(
 map.getLayerPxFromViewPortPx(
  map.getPixelFromLonLat(
   new OpenLayers.LonLat(9.55,35.23) 
  )
 )
);



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


More information about the Dev mailing list