[英]how can i put an alert after loading google map
加載谷歌地圖后有沒有辦法執行一個功能? 我的網站上有一個谷歌地圖
在此網站中,Google地圖使用以下網址在Google API上執行:http://maps.googleapis.com/maps/api/js?sensor = true&libraries = places
我想在此站點中加載Google地圖后添加一個警告框。
有沒有辦法識別地圖何時滿載?
請幫我
地圖有一個tilesloaded-event,當可見的tile完成加載時會觸發:
google.maps.event
.addListenerOnce(mapinstance, 'tilesloaded', function(){alert('map is ready');});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.