简体   繁体   中英

Is there a finished drawing event or callback in the Google Maps API v3?

我想在地图上加载东西时弹出一个加载栏。

  // insert / show your loading bar
  // (or not if it's already visible in the DOM)

  // var map = new google.maps.Map(map_canvas, map_options);

  google.maps.event.addListenerOnce(map, 'idle', function() {
    // hide your loading bar
  });

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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