I like to keep track of any and all infowindows that are open on my Google Maps interface (I store their names in an array), but I can\'t figure out how to remove them from
Try this:
var closeBtn = $('.gm-style-iw').next(); closeBtn.click(function(){ //other things you want to do when close btn is click that.infowindow.close(); });
I overwrite this click function because the click button won't work in safari after I change the css/position of it.