I’m using google maps addon of Advanced Custom Fields for WordPress. I have multiple points on the map, some are very close to one another. I can open open them no problem, however I need to have one open at time. So if I open one, it closes the others. The Marker set up on click for advanced custom fields is as follows:
if( $marker.html() )
{
// create info window
var infowindow = new google.maps.InfoWindow({
content : $marker.html(),
maxWidth: 250
});
google.maps.event.addListener(marker, 'click', function() {
infowindow.open( map, marker );
});
}
Any help on how to append this so only one window is open at a time would be greatly appreciated
1 comment