google.maps.event.addListener(map, "idle", function() - 是否可以指定空闲时间?
google.maps.event.addListener(map, "idle", function()
是否可以指定空闲时间?
谢谢人族
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,不幸的是这个功能不存在。实现此目的的最佳方法是使用
window.setTimeout
的组合和window.clearTimeout
。我建议像这样(未经测试):
注意使用
addListenerOnce
,它仅在事件第一次发生时触发。No, unfortunately this feature doesn't exist. The best way to achieve this is to use a combination of
window.setTimeout
andwindow.clearTimeout
.I'd suggest something like this (untested):
Note the use of
addListenerOnce
, which fires only the first time the event occurs.