Some things to be aware of:

1. GEvent event names are case specific, so "RightClick" is not the same
as "singlerightclick".

2. This line specifies which events Mike's Clickable LabeledMarker will
pass through:
   var eventPassthrus = ['click', 'dblclick', 'mousedown', 'mouseup',
                         'mouseover', 'mouseout'];
Mike's Clickable LabeledMarker extends GMarker, so you can probably add
to that list any other GMarker events that you want and it might work.
However, GMarker doesn't have a "singlerightclick" event, so that
doesn't help.

3. Browsers don't have a separate "rightclick" event. What the Google
API does for GMap2 objects is listen for the browser's "onmousedown"
event. The browser onmousedown event returns a browser-specific Event()
object. The API then looks inside that Event() to see which button was
pressed and decides whether to trigger a GEvent "click" or a GEvent
"singlerightclick" on the map.

4. Since the clickable element of Mike's Clickable LabeledMarker is
accessible, you could try using GEvent.addDomListener to listen for
mousedown events on that HTML Element, and then examining the Event() to
see which button was pressed. I don't know how much that would interfere
with the normal behaviour of the click events.

-- 
Mike Williams
http://econym.org.uk/gmap



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to