leaflet-geoman component for Dash
Project description
dash-geoman
Wrapper of leaflet-geoman components for Plotly Dash
Getting started
The easiest way to get started is to install the latest version of Dash and dash-geoman via pip.
pip install dash==2.0.0
pip install dash-geoman
Once the installation is completed, paste the following lines of code into a .py file and run it.
import dash
import dash_leaflet as dl
import dash_geoman as dgm
app = dash.Dash()
app.layout = dl.Map(childrenn=[
dl.TileLayer(),
dgm.Geoman(),
], style={'width': '1000px', 'height': '500px'})
if __name__ == '__main__':
app.run_server()
If you visit http://127.0.0.1:8050/ in your browser, you should see a leaflet map and dash-geoman's edit controls.
Documentation
Build instructions
Start by cloning this repository,
git clone git@github.com:pikhovkin/dash-geoman.git
cd dash-geoman
Next, create a virtual environment and install the python dependencies,
python3 -m venv venv && . venv/bin/activate
pip install -r requirements.txt
Finally, install packages via npm (ignore errors) and run the build script,
npm i --ignore-scripts
npm run build
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dash_geoman-0.1.0.tar.gz.
File metadata
- Download URL: dash_geoman-0.1.0.tar.gz
- Upload date:
- Size: 314.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
408db6bd94d3d1b3cb75697cd106d8465903a9bdf071cffbbebf75b0bbfb0447
|
|
| MD5 |
8efb4163557a6f94ff4bd3b44607c563
|
|
| BLAKE2b-256 |
dbf9b02d3033ddf788d0009a35bd070183b83970eed40b1ed6b3f5fed8cb0aac
|