All Projects → andfanilo → streamlit-light-leaflet

andfanilo / streamlit-light-leaflet

Licence: MIT License
Streamlit quick & dirty Leaflet component that sends back coordinates on map click

Programming Languages

typescript
32286 projects
python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to streamlit-light-leaflet

Text-Summarization
Abstractive and Extractive Text summarization using Transformers.
Stars: ✭ 38 (+72.73%)
Mutual labels:  prototype, streamlit
object-detection-app
Simple object detection app with streamlit
Stars: ✭ 57 (+159.09%)
Mutual labels:  streamlit
playground
A Streamlit application to play with machine learning models directly from the browser
Stars: ✭ 48 (+118.18%)
Mutual labels:  streamlit
vue2-leaflet-rotatedmarker
rotated marker plugin extension for vue2-leaflet package
Stars: ✭ 17 (-22.73%)
Mutual labels:  leaflet
GTD-Visualization
全球恐怖袭击数据可视化
Stars: ✭ 31 (+40.91%)
Mutual labels:  leaflet
nested-task-list-mobx-react
A nested task list prototype built with React + MobX and Material-ui
Stars: ✭ 25 (+13.64%)
Mutual labels:  prototype
acf-openstreetmap-field
WordPress ACF Field for OpenStreetMap
Stars: ✭ 88 (+300%)
Mutual labels:  leaflet
atlaskit-framerx
[Unofficial] Atlaskit for Framer X (experimental)
Stars: ✭ 27 (+22.73%)
Mutual labels:  prototype
tokonoma
Graphics related projects/prototypes/playground (Vulkan, C++17)
Stars: ✭ 23 (+4.55%)
Mutual labels:  prototype
starter
Create vertical search web application in minutes with generator (based on ItemsAPI)
Stars: ✭ 21 (-4.55%)
Mutual labels:  prototype
img ai app boilerplate
An image classification app boilerplate to serve your deep learning models asap!
Stars: ✭ 27 (+22.73%)
Mutual labels:  streamlit
medical-data-android
Android app to collect data to be analyzed for medical purposes.
Stars: ✭ 24 (+9.09%)
Mutual labels:  prototype
mars2d
【Mars2D平台 】主仓库,包含所有开源仓库清单导航
Stars: ✭ 182 (+727.27%)
Mutual labels:  leaflet
crisis-news-mapper
日本の災害関連ニュースをTwitterから収集して地図上にマッピングするFirebaseプロジェクト crisis.yuiseki.net
Stars: ✭ 13 (-40.91%)
Mutual labels:  leaflet
streamlit-pandas-profiling
Pandas profiling component for Streamlit.
Stars: ✭ 135 (+513.64%)
Mutual labels:  streamlit
leaflet-geojson-selector
Show GeoJSON Layer like as Interactive Menu List
Stars: ✭ 88 (+300%)
Mutual labels:  leaflet
prototyped.js
Some common Typescript prototypes
Stars: ✭ 22 (+0%)
Mutual labels:  prototype
mapus
A map tool with real-time collaboration 🗺️
Stars: ✭ 2,687 (+12113.64%)
Mutual labels:  leaflet
streamlit-webrtc-example
Real time video and audio processing examples with Streamlit and streamlit-webrtc
Stars: ✭ 53 (+140.91%)
Mutual labels:  streamlit
streamlit-observable
Embed Observable notebooks into Streamlit apps!
Stars: ✭ 50 (+127.27%)
Mutual labels:  streamlit

Streamlit component - return coordinates on map click

A very quick & dirty prototype of Streamlit component that sends back coordinates on click, using the Reactless template. Feel free to fork and go on your Leaflet adventure!

Quickstart Success

Quickstart

  • Ensure you have Python 3.6+, Node.js, and npm installed.
  • Clone this repo.
  • Create a new Python virtual environment for the template:
$ cd template
$ python3 -m venv venv  # create venv
$ . venv/bin/activate   # activate venv
$ pip install streamlit # install streamlit
  • Initialize and run the component template frontend:
$ cd template/my_component/frontend
$ npm install    # Install npm dependencies
$ npm run start  # Start the Webpack dev server
  • From a separate terminal, run the template's Streamlit app:
$ cd template
$ . venv/bin/activate  # activate the venv you created earlier
$ streamlit run my_component/__init__.py  # run the example
  • Modify the frontend code at my_component/frontend/src/MyComponent.tsx.
    • Especially use your own Mapbox token ;)
    • Height of div is also hardcoded, should be in separate css.
  • Modify the Python code at my_component/__init__.py.

What if I want to do it myself ?

git clone https://github.com/streamlit/component-template
cp -r component-template/template-reactless/ ~/streamlit-light-leaflet/
cd ~/streamlit-light-leaflet/my_component/frontend
npm add leaflet @types/leaflet

Then follow the Quickstart.

More Information

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].