I'd like to pop up a loading bar for when things开发者_如何学编程 are loading on a map.
// 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
});
精彩评论