Google Maps数据层鼠标事件触发idle事件异常问题及修复说明
idle 事件异常触发问题的解决方案 Hey there, let's break down this idle event issue you encountered with Google Maps JS API V3:
The Problem
Per the official API V3 documentation, the idle event should only trigger when the map finishes panning/zooming and enters an idle state. But in practice, when you hover your cursor over elements in the Data Layer, the idle event fires continuously—completely preventing it from working as intended.
The Fix
This was a recognized bug, and Google has resolved it! The issue was tracked in their official problem tracker, and it was marked as fixed in the 3.32 API version released on March 7, 2018.
If you're still facing this problem, just ensure you're using Google Maps JavaScript API version 3.32 or later, and the idle event will start behaving correctly again.
内容的提问来源于stack exchange,提问作者Yarin

