Chr*_*oot 7

不,不幸的是这个功能不存在.实现这一目标的最好方法是使用组合window.setTimeoutwindow.clearTimeout.

我建议像这样(未经测试):

google.maps.event.addListener(map, 'idle', function() {
   var idleTimeout = window.setTimeout(onIdle, timeout);
   google.maps.event.addListenerOnce(map, 'bounds_changed', function() {
     window.clearTimeout(idleTimeout);
   });
});
Run Code Online (Sandbox Code Playgroud)

请注意使用addListenerOnce,仅在事件第一次发生时触发.