Susannah (Google Employee)
unread,Nov 24, 2009, 1:19:16 AM11/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Maps JavaScript API v3
Hi Geoff,
This should cancel the event clicks for you. I'll work on updating
the demo to include event cancelling.
function cancelEvent(e) {
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
}
google.maps.event.addDomListener(div, 'mousedown', cancelEvent); //
cancels drag/click
google.maps.event.addDomListener(div, 'click',
cancelEvent); // cancels click
google.maps.event.addDomListener(div, 'dblclick',
cancelEvent); // cancels double click
google.maps.event.addDomListener(div, 'contextmenu', cancelEvent); //
cancels double right click
(where div is the custom overlay)
Hope this helps,
Susannah