Hello, I am experiencing wired behaviour when different elements
overlapp in one map. I've uploaded a snipped to
http://menedev.de/GMapSnippets/overlayEventHandling.html
You can click on the map, the polygon and the marker.
When you click on the map only the click-handler for the map is
invoked.
When you click on the polygon the click-handler for polygon and the
map is invoked (in this order).
When you click on the marker the click-handler for the map and the
marker is invoked (in this order). And a custom overlay is added to
the map, overlapping the marker.
If you click in this area the handlers for (1) polygon, (2) map, (3)
control (custum overlay) are invoked regadles wheater you click over
the marker or not.

What I'd need: When clicking on the custom overlay I need a way to
prevent the other click events from being invoked. At least not the
ones from the polygon, since I'm using this for another function.
However, since the Polygon handler is invoked first I don't see a way
to accomplish this.

Thanks,
Mene

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