On Apr 6, 6:23 pm, Jason Sanford <[email protected]> wrote: > I know there is no 'mouseover' event for a Polygon but has anyone > successfully implemented their own solution? I want to highlight a polygon > (change fillColor property) when I mouseover a polygon and open an > infoWindow when I click a polygon (I've already got this). > > Thanks
It is difficult to do with tiled polys. Each tile may contain multiple polys. Each poly may be partially resident in multiple tiles. For CANVAS, it means completely rebuilding every tile containing a piece of the poly. For SVG & VML, individual polys can have color changes applied but it still involves multiple tiles. It can be done by inserting / removing extra shapes for the "rollover" element in the existing tile structure. Unfortunately, CANVAS uses a different coloring algorithm than SVG & VML. -- 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.
