I think here can use ```google.maps.event.addDomListener(window, 'load', callback);```,