googleway icon indicating copy to clipboard operation
googleway copied to clipboard

close info_window when another marker is clicked

Open cwilligv opened this issue 7 months ago • 0 comments

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!

cwilligv avatar Jan 22 '24 02:01 cwilligv