I want to display some animation on infoWindow on google maps using jQuery.
var infoWindow = new google.maps.InfoWindow({ content: contentString }); google.maps.event.addListener(marker, 'click', function(){ infoWindow.open(map, marker); setTimeout(animation, 1000); });
animation()
must receive the element by its id on infoWindow, so infoWindow must complete the download before animation()
executed.
How can I execute animation()
immediately afer infoWindow to complete the download, and not wait 1 second each time?
source share