There is no regular event called 'rightclick'. That's an event provided by the Maps API. The regular event is called 'click'. So the 'rightclick' event is only definable for map objects according to the documentation.
Be that as it may, it looks like as if the Maps API makes it impossible to register any right click on the map and on every DOM element appended to the map. Seems you can't even use a regular event listener provided by Javascript for that. On Jun 27, 2:00 pm, jbdemonte <[email protected]> wrote: > Hi, > > RightClick doesn't works on google.maps.OverlayView > > You can test on :http://gmap3.net/issues/overlay-rightclick.htm > > (this is a simple update > ofhttp://blog.mridey.com/2009/09/label-overlay-example-for-google-maps....) > > I added this : > > google.maps.event.addDomListener(this.div_, 'click', function(e) > { > alert('click'); > }); > google.maps.event.addDomListener(this.div_, 'rightclick', > function(e) { > alert('rightclick'); > }); > > Thanks, > > DEMONTE Jean-Baptiste. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
