Projects
View on GitHub
randyzwitch/streamlit-folium
About
Streamlit Component for rendering Folium maps
Creative & MediaMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalstreamlit-folium: geospatial made easy in Streamlit!
streamlit-folium integrates two great open-source projects in the Python ecosystem: Streamlit and Folium!
Installation
pip install streamlit-folium
or
conda install -c conda-forge streamlit-folium
Usage
Currently, there are two functions defined:
st_folium(): a bi-directional Component, taking a Folium/Branca object and plotting to the Streamlit app. Upon mount/interaction with the Streamlit app,st_folium()returns a Dict with selected information including the bounding box and items clicked onfolium_static(): takes afolium.Map,folium.Figure, orbranca.element.Figureobject and displays it in a Streamlit app using the_repr_html()representation created in Folium. This function should be a strict subset the of functionality of the newerst_folium()function, but is great for testing to ensure you have the correct Folium syntax.
Example
Run and edit this example in Py.Cafe

Contributing
See CONTRIBUTING.md for more details.
Explore related projects
Loading…