Leaflet component for Dash
Project description
Dash Leaflet
Dash Leaflet is a light wrapper around React-Leaflet. The syntax is similar to other Dash components, with naming conventions following the React-Leaflet API.
Getting started
The easiest way to get started is to install the latest version of Dash and Dash Leaflet via pip.
pip install dash==1.12.0
pip install dash-leaflet
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
app = dash.Dash()
app.layout = dl.Map(dl.TileLayer(), 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.
Documentation
The documentation has been moved to Heroku to enable an interactive example gallery.
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
dash_leaflet-0.0.15.tar.gz
(1.5 MB
view details)
File details
Details for the file dash_leaflet-0.0.15.tar.gz.
File metadata
- Download URL: dash_leaflet-0.0.15.tar.gz
- Upload date:
- Size: 1.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfa035863c9e14ce6433876689239fc0378d68de8585742a2a449a06d5e4c205
|
|
| MD5 |
bdfcf0dda610d5d889ae39b7af0b0646
|
|
| BLAKE2b-256 |
00dccc9251c271256b693d4be5b79c4b50e391b4142710958bd59fcb0a7e3bb7
|