googleway
googleway copied to clipboard
close info_window when another marker is clicked
Hi,
When another marker is clicked, and the infowindow of another marker is open, the other marker's infowindow stays open. I want the behaviour to be for the infowindow to close when another marker is clicked, Is there a way to specify this behaviour in a R/Shiny app?
I checked the parameter 'close_info_window' from the add_markers function but this only works when clicking anywhere in the map.
Thanks!