开发者

Google Maps v3, polyline mouse events

开发者 https://www.devze.com 2022-12-07 23:42 出处:网络
Is it possible to detec开发者_JS百科t when the mouse has entered and exited a polyline region in Google Maps v3?

Is it possible to detec开发者_JS百科t when the mouse has entered and exited a polyline region in Google Maps v3?

As a particular use-case, I would like to change the color of a polyline when then mouse is hovering over it. Polylines allow registration of a "mousemove" event, but it doesn't seem to allow notification of mouse over/out events. This strikes me as a pretty basic bit of utility. Are there any solutions for doing this sort of thing? Is this an inappropriate use of polylines?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号