Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streamlit-folium: release button not working #227

Open
gomesdaciel opened this issue Oct 1, 2024 · 1 comment
Open

streamlit-folium: release button not working #227

gomesdaciel opened this issue Oct 1, 2024 · 1 comment

Comments

@gomesdaciel
Copy link

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
Copy link
Collaborator

blackary commented Oct 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants