randyzwitch / streamlit-folium

Streamlit Component for rendering Folium maps
https://folium.streamlit.app/
MIT License
467 stars 174 forks source link

streamlit-folium: release button not working #227

Open gomesdaciel opened 1 day ago

gomesdaciel commented 1 day ago

I'm trying to implement this code:

import folium
import streamlit as st

from folium.plugins import Draw
from streamlit_folium import st_folium

m = folium.Map(location=[43.72299, 10.396579], zoom_start=13)
Draw(export=True).add_to(m)

folium.Marker(
    location=[43.72299, 10.396579],
    popup="Torre di Pisa"
).add_to(m)

c1, c2 = st.columns(2)
with c1:
    output = st_folium(m, use_container_width=True)

with c2:
    st.write(output)  

But after clicking on the marker and trying to draw a shape, it seems that the mouse gets stuck, just like what is described here: Streamlit_folium release button not working.

Do you guys have any idea how to solve this problem?

Debug info:

folium==0.17.0
streamlit==1.38.0
streamlit_folium==0.22.1
blackary commented 7 hours ago

Is this different from the behavior you see on https://folium.streamlit.app/draw_support?