Metadata-Version: 2.1
Name: ipyleaflet-legend
Version: 0.1.0
Summary: A custom legend for ipyleaflet
Home-page: https://github.com/weatherforce/ipyleaflet-legend
Author: WeatherForce
Author-email: opensource@weatherforce.org
License: UNKNOWN
Keywords: ipython,jupyter,widgets
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: IPython
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Multimedia :: Graphics
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
Requires-Dist: ipywidgets (>=7.0.0)

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.


