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

[Issue] When using st_folium, a blank space will be left below the map #198

Open
leons1982 opened this issue Jul 3, 2024 · 2 comments
Open
Labels

Comments

@leons1982
Copy link

Issue Desc: When I use st_folium on the latest version of streamlit, after the map is rendered, a large blank area is left at the bottom of the map
Issue Image: image

Versions I used:

  • streamlit:1.36.0
  • streamlit-folium:0.21.0
  • folium:0.17.0

Code to reproduce the issue:

import folium
import streamlit as st
from streamlit_folium import st_folium

m = folium.Map(location=[39.949610, -75.150282], zoom_start=5)

with st.container(border=True):
    st_folium(m, height=500)

Additional information:
When I use the folium_static function, the map can be rendered normally without any white blank area, but I need to get the information returned by the map, so I need to use st_folium

Please check this issue caused by streamlit version upgrade, it will be of great help to me, thank you!

@randyzwitch
Copy link
Owner

It's not immediately obvious what the issue might be, but if this only happens when you upgrade the Streamlit version, you might try filing a bug with them as well? I can't think of a change we've made recently that would affect the underlying container (the code of which comes from Streamlit as part of the custom components functionality)

@leons1982
Copy link
Author

Ok,I will report the issue the streamlit team too, thanks.

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

No branches or pull requests

2 participants