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.19.tar.gz
(1.5 MB
view hashes)
Built Distribution
Close
Hashes for dash_leaflet-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 479e761c89acc840a6f9035b7a83cda240a73bab6c4da21d42b2be6da2645e81 |
|
MD5 | 482e228f42a8a7f14b2ab0373c51377b |
|
BLAKE2b-256 | aa74b09138e921b17bf4fa8dfe79864bf703432b75138866d64eb3bfc6e56d47 |