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