Skip to content

Commit

Permalink
Fix popups and default return (#49)
Browse files Browse the repository at this point in the history
* Correctly render popups, and return dictionary by default, instead of null

* Bump version

* Add jinja2 and branca

* Fix issue with DualMap

* Bump version
  • Loading branch information
blackary authored Apr 25, 2022
1 parent e6b20b2 commit 3b8664c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setuptools.setup(
name="streamlit_folium",
version="0.6.6",
version="0.6.7",
author="Randy Zwitch",
author_email="[email protected]",
description="Render Folium objects in Streamlit",
Expand Down
4 changes: 2 additions & 2 deletions streamlit_folium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b8664c

Please sign in to comment.