import panel as pn
m = folium.Map(location=[52.51, 13.39], zoom_start=12)
cfm = folium.ClickForMarker()
pane = pn.pane.plot.Folium(m, height=500)
Similar to pydeck’s
My understanding is that Folium only supports one-way communication (display). Not two way (events). I believe its stated somewhere in its github issues.
Just an idea: Would it be possible to create a ReactiveHTML layout that listens to click events. Put the folium pane into the layout. Get the events to the server side and try to make sense of the events in Python?