diff --git a/setup.py b/setup.py index f288d58..2cd2a1b 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setuptools.setup( name="streamlit_folium", - version="0.6.6", + version="0.6.7", author="Randy Zwitch", author_email="randy@streamlit.io", description="Render Folium objects in Streamlit", diff --git a/streamlit_folium/__init__.py b/streamlit_folium/__init__.py index 355f0b3..b33334a 100644 --- a/streamlit_folium/__init__.py +++ b/streamlit_folium/__init__.py @@ -139,8 +139,8 @@ def st_folium( "all_drawings": None, "last_active_drawing": None, "bounds": fig.get_bounds(), - "zoom": fig.options.get('zoom'), - } + "zoom": fig.options.get("zoom") if hasattr(fig, "options") else {}, + }, ) return component_value