Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法观察谷歌地图瓦片的渲染完成?
与此相关,有没有办法测试是否所有地图图块都已成功渲染?
这是基于此处描述的未解决问题。
监听tilesloaded事件,例如
tilesloaded
google.maps.event.addListener( 'tilesloaded', function() { // tiles have been loaded });
我认为 API 中没有任何方法可以询问是否已加载图块,但您可以在事件侦听器中设置一个标志。