Interesting.

Note that as with William's example, the polygon is drawn over top of the point markers, yet the clicks are caught by the markers. In William's other example of the points properly atop the polygon, the clicks were caught by the polygon.

In both (all three) test cases, it seems that the "lower" layer gets first dibs on the click event. This is counterintuitive, to say the least, that a click is handled by the object closest to the ground and not by the stuff on top of it.

This is good information, but in our case it wouldn't be acceptable to have the polygon drawn over top of the marker icons. I have added the info for all 3 URLs to the ticket; maybe this will help them figure out that it's a event-handler-stacking issue or some such. I could imagine that: the first registered event handler is for the first-laid layer, so that event handler gets the click.

--
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
   Network+   Server+   A+   Security+   Linux+
   PHP   PostgreSQL   MySQL   DHTML/JavaScript/AJAX

"No one cares if you can back up — only if you can recover."

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

Reply via email to