Hi,

I’ve implemented a custom overlay that contains text with links in it.
I want the user to be able to select the text and to do a secondary
click on the link to open the browser’s context menu (e.g. to open the
link in a new tab).

By default, this does not work, because the underlaying map is eating
up the click events when clicking on the overlay. To bypass this, one
needs to catch these events on the overlay <div> and stop propagating
them, so the underlaying map doesn’t receive them.

Doing so works in WebKit-based browsers and even in IE8, but in
Firefox, a secondary click inside the overlay <div> still doesn’t open
the context menu. I’ve set up a demo site where you can see it for
yourself.

   http://fooo.org/GMaps/

Clicking on the marker opens the overlay. Inside the official
InfoWindow, the context menu opens even in Firefox, but unfortunately
I can’t view the source code to see how it’s been done because it’s
obfuscated and compressed. I also checked third-party implementations
of InfoWindow and they’re having the same problem.

I’d be glad if someone could help me out. I think it’s just another
event I’m not catching right now, but I can’t figure out which.

Thomas
-- 
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