I have the following function that opens my info window for the marker, I am struggling to understand how I can close the active / opened info window before opening another, so that only one info window is active at a time?
google.maps.event.addListener(map_marker, 'click', function () {
info_window.setContent(this.html)
info_window.open(self.map, this)
document.querySelector("#js-reset-zoom").classList.remove('active')
})
this.map_markers.push( map_marker )