Closed OscarJanin closed 3 years ago
Hi, I fear that in won't work this way. The problem is that when addPopupGraphs
is called, it adds a dependency to the map. AFAIK htmlwidgets will not re-add an already existing dependency,
I think you'd need to re-think the app logic somehow. Can you not pre-create the plots and add all of them once?
Closing here, please feel free to re-open if this is still an issue that needs attention here
I would like to open a popup with a unique plot for each of my marker in it on a map_marker_click using r leaflet and the leafpop library.
For each point when the user click on them the plot to display is computed.
Below is a reproductible code but it doesn't return any error.
Is it possible to run addPopupGraph() inside a map_marker_click event?