<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><DIV>I have a raster image that happens to have my latitude/longitude lines drawn on it.&nbsp; My wms server is returning a portion of this image to OpenLayers.&nbsp; I added an event by "map.events.register('mousedown',map,queryLayer)" where queryLayer is a function: "function queryLayer(evt)"</DIV>
<DIV>&nbsp;</DIV>
<DIV>Somehow the getLonLatFromViewPortPx is returning invalid coordinates, shifted 5 pixels to the right.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I also tried MousePosition() and it is off the same amount.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am running OpenLayers-2.2 release.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Curtis</DIV></div></body></html>