On Oct 3, 7:17 am, "Enoch Lau (Google Employee)" <[email protected]> wrote: > Yeah it makes sense that if polygons are shown on top, they should get mouse > events first - thanks for filing a bug. > > Enoch
CANVAS does not support "real" mouse events for polys. The "zIndex" order is just the "drawing" order for everything in the same CANVAS tile. The API has to "fake" mouse events with "Point in Poly" analysis in reverse order for the clicked tile. Built-in CANVAS methods make it both fast & easy. Perhaps the API ought to return all overlapping clicked elements rather than just one. -- 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.
