chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

Wrong coordinates for context menu clicked position #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Put an OpenLayersMap with ActionHandlers inside a page where there are 
another components at left and/or top of it.
2. Right click the map to open a context menu.
3. After choosing an action, the calculated longitude and latitude will be 
different from the coordinates of the clicked position.

What is the expected output? What do you see instead?
The action handler must consider the left and top offsets to calculate clicked 
position on the map, so the longitude and latitude will be correctly calculated.

What version of the product are you using? On what operating system?
Version 0.9.3-SNAPSHOT on a Glassfish Application Server.

Please provide any additional information below.
I already fixed the problem by changing how the clicked position on map is 
calculated in VOpenLayersMap class, method handleBodyContextMenu. I'm attaching 
a file with the fixed class.

Original issue reported on code.google.com by marciot...@gmail.com on 15 Feb 2012 at 4:25

Attachments:

GoogleCodeExporter commented 9 years ago
Mark, would you check this issue? I guess you are the best expert at this area.

Original comment by ma...@vaadin.com on 5 Mar 2012 at 8:18

GoogleCodeExporter commented 9 years ago
sure, i'll look into it today

Original comment by spatialguru.net@gmail.com on 5 Mar 2012 at 3:12

GoogleCodeExporter commented 9 years ago
thanks for the fix.  committed in r118

Original comment by spatialguru.net@gmail.com on 5 Mar 2012 at 4:19