As the title states, on a given event (for me this happens to be upon opening a new google.maps.InfoWindow
I want to be able to close any other currently open info
The best way to do this I think... is having an object with the infowindows that you have opened
I have two objects, infos have all the infowindows created and markers contains all markers with they infowindows so I just execute this functions that loop the infowindow object and close all the infowindows
function CloseInfowindows() {
for (var mkey in infos) {
var mobj = markers[mkey];
mobj.infowindow.close();
}
}