A custom legend for ipyleaflet
Project description
ipyleaflet-legend
A custom legend based on this example https://leafletjs.com/examples/choropleth/. It aim to pass a small legend configured as a dictionnary to ipyleaflet as a LeafletControl.
Installation
To install use pip:
$ pip install ipyleaflet_legend
$ jupyter nbextension enable --py --sys-prefix ipyleaflet_legend
To install for jupyterlab
$ jupyter labextension install ipyleaflet_legend
For a development installation (requires npm),
$ git clone https://github.com/weatherforce/ipyleaflet-legend.git
$ cd ipyleaflet-legend
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix ipyleaflet_legend
$ jupyter nbextension enable --py --sys-prefix ipyleaflet_legend
$ jupyter labextension install js
When actively developing your extension, build Jupyter Lab with the command:
$ jupyter lab --watch
This take a minute or so to get started, but then allows you to hot-reload your javascript extension. To see a change, save your javascript, watch the terminal for an update.
Note on first jupyter lab --watch
, you may need to touch a file to get Jupyter Lab to open.
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
Built Distribution
File details
Details for the file ipyleaflet_legend-0.1.0.tar.gz
.
File metadata
- Download URL: ipyleaflet_legend-0.1.0.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c8998bb28df2cc0f96bafda5ce483bb38f645e4beaed99197de691d81dd3570 |
|
MD5 | 6fee9ded6fe16098b797ca1afd1d2d5b |
|
BLAKE2b-256 | 12d9f3601509286fe1021ac7937c6c396df3e43ad37b5b0f49a6e1deebd12a6d |
File details
Details for the file ipyleaflet_legend-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ipyleaflet_legend-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ea5fda4fd0f922c0f7d1fdbb4bc2d04483e682ef1e41c8cffa0c0068fef5edb |
|
MD5 | 67e3a55426e6d6e28117e7a5e757931b |
|
BLAKE2b-256 | bfd0731449c07778e9e87702444da6e7e5fddcaef26f9235dafedfd47ef61619 |