简体   繁体   English

Google Maps-如何检测叠加图类型的加载完成

[英]Google maps - How to detect the load completion for overlay map type

In our project we overlay a ImageMapType (google.maps.ImageMapType) over a base map using map.overlayMapTypes.insertAt method. 在我们的项目中,我们使用map.overlayMapTypes.insertAt方法将ImageMapType(google.maps.ImageMapType)覆盖在基础地图上。 The ImageType has getTileUrl function to fetch the tile for a particular location from the server. ImageType具有getTileUrl函数,可从服务器获取特定位置的切片。

I want to display a pageMask with a text message while the overlay maptype tiles are loaded and remove it once all tiles have been loaded. 我想在加载叠加层地图类型图块时显示带有文本消息的pageMask,并在所有图块均已加载后将其删除。 Is there a event to detect the load completion of these ImageMapType tiles. 是否有事件可检测这些ImageMapType切片的加载完成。

Thanks, Sivakumar. 谢谢,Sivakumar。

This event is fired when all visible tiles have finished loading. 所有可见图块均已加载完毕时,将触发此事件。

GMap2::tilesloaded()

Details . 细节

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM