Zn2O / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

No MarkerRightClickEvent #185

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release: 1.0

Detailed description:
The Marker object responds to a lot of events, but a
MarkerRightClickEvent/MarkerRightClickHandler is missing...

Workaround if you have one:

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by alemao...@gmail.com on 1 Oct 2008 at 2:16

GoogleCodeExporter commented 9 years ago
I don't see this event currently documented in the Maps JavaScript API:

http://code.google.com/apis/maps/documentation/reference.html#GMarker

You might want to investigate and see if there is some reason why it isn't 
included there.

It may be that you can catch this event using the 
MapWidget.addMapRightClickHandler().  The 'getOverlay()' 
method from the returned event object should be an instance of Marker if you 
click on it.

Original comment by galgwt.reviews@gmail.com on 1 Oct 2008 at 2:23

GoogleCodeExporter commented 9 years ago
You're right, the JavaScript API does not forward the singlerightclick event to 
the
Marker.

The suggested solution works when clicking on a marker and is consistent with 
the
official API. However, when clicking on a spot on the map where there is no 
marker,
the problem mentioned in issue 179 shows up.

Any workaround for this?

Original comment by alemao...@gmail.com on 1 Oct 2008 at 3:19

GoogleCodeExporter commented 9 years ago
Other than applying the patch for issue 179, I don't have a workaround, sorry.

Original comment by galgwt.reviews@gmail.com on 1 Oct 2008 at 4:26