From 3b8664cc860f455fe4b4115e3d3f045b6193ab52 Mon Sep 17 00:00:00 2001 From: Zachary Blackwood Date: Mon, 25 Apr 2022 10:43:05 -0400 Subject: [PATCH] Fix popups and default return (#49) * Correctly render popups, and return dictionary by default, instead of null * Bump version * Add jinja2 and branca * Fix issue with DualMap * Bump version --- setup.py | 2 +- streamlit_folium/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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