On Oct 3, 7:17 am, "Enoch Lau (Google Employee)" <
enoch...@google.com>
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.