GithubHelp home page GithubHelp logo

developers81828182 / streamlit-folium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from randyzwitch/streamlit-folium

0.0 1.0 0.0 9.7 MB

Streamlit Component for rendering Folium maps

Home Page: https://folium.streamlit.app/

License: MIT License

Python 54.97% TypeScript 24.54% HTML 20.50%

streamlit-folium's Introduction

streamlit-folium: geospatial made easy in Streamlit!

Run tests each PR

Open 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 on

  • folium_static(): takes a folium.Map, folium.Figure, or branca.element.Figure object and displays it in a Streamlit app.

    Note: folium_static() is based on the _repr_html() representation created in Folium. This function should be a strict subset the of functionality of the newer st_folium() function. It is recommended that users switch to st_folium() as soon as possible, as folium_static() will likely be deprecated.

    If there is a reason why folium_static() needs to remain, please leave a GitHub issue describing your use case.

Example

streamlit_folium example

streamlit-folium's People

Contributors

randyzwitch avatar blackary avatar sfc-gh-zblackwood avatar dependabot[bot] avatar bastiengauthier avatar a-slice-of-py avatar nhridoy avatar hugosandelius avatar raptorworks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.