Google Maps v3, polyline events

Is it possible to detect when the mouse entered and exited a polyline area in Google Maps v3?

As a specific use case, I would like to change the color of the polyline when the mouse hovers over it. Polylines allow you to register the "mousemove" event, but that doesn't seem to allow you to notify about mouse events. This strikes me as a fairly simple utility set. Are there any solutions for this kind of thing? Incorrect use of polylines?

+2


source to share


1 answer


The Google Maps team has added a mouse event for polylines as of April 26, 2010 (Google Maps Javascript API V3).



+1


source







All Articles