项目
在 GitHub 查看
randyzwitch/streamlit-folium
关于
用于渲染 Folium 地图的 Streamlit 组件。
创作与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文streamlit-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.
探索相关项目
加载中…