https://github.com/jupyter-xeus/xleaflet
C++ backend for the jupyter leaflet widget
https://github.com/jupyter-xeus/xleaflet
Last synced: 5 months ago
JSON representation
C++ backend for the jupyter leaflet widget
- Host: GitHub
- URL: https://github.com/jupyter-xeus/xleaflet
- Owner: jupyter-xeus
- License: bsd-3-clause
- Created: 2018-03-30T16:37:54.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T16:04:59.000Z (11 months ago)
- Last Synced: 2024-11-21T19:50:29.485Z (5 months ago)
- Language: C++
- Size: 19 MB
- Stars: 84
- Watchers: 8
- Forks: 16
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - jupyter-xeus/xleaflet - C++ backend for the jupyter leaflet widget (others)
README
# 
[](https://dev.azure.com/jupyter-xeus/jupyter-xeus/_build/latest?definitionId=7&branchName=master)
[](https://ci.appveyor.com/project/jupyter-xeus/xleaflet)
[](https://xleaflet.readthedocs.io/en/latest/?badge=latest)
[](https://mybinder.org/v2/gh/jupyter-xeus/xleaflet/stable?filepath=notebooks)
[](https://gitter.im/QuantStack/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)C++ backend for the jupyter-leaflet map visualization library
## Usage
Selecting a base layer for a map:

Loading a geojson dataset:

Using the splitmap control:

Displaying velocity data on the top of a map:

## Installation
We provide a package for the mamba (or conda) package manager.
- Installing `xleaflet` and the C++ kernel
```bash
mamba install xeus-cling xleaflet -c conda-forge
```Then, the front-end extension must be installed for either the classic notebook or JupyterLab.
- Installing the extensions for the classic notebook
```
mamba install widgetsnbextension -c conda-forge
mamba install ipyleaflet -c conda-forge
```- Installing the JupyterLab extension
```
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-leaflet
```## Installation from sources
Or you can directly install it from the sources if you have all the dependencies already installed:
```bash
cmake -D CMAKE_INSTALL_PREFIX=your_install_prefix
make install
```## Trying it online
To try out xleaflet interactively in your web browser, just click on the binder
link:[](https://mybinder.org/v2/gh/jupyter-xeus/xleaflet/stable?filepath=notebooks/)
## Documentation
To get started with using `xleaflet`, check out the full documentation
http://xleaflet.readthedocs.io/
## Dependencies
All the dependencies of xleaflet are available for the mamba package manager.
| `xleaflet` | `xwidgets` | `xeus` | `xtensor` |
|------------|-------------|-----------------|-----------------|
| master | ~0.27.0 | >=3.0.0,<4.0.0 | >=0.23.0,<0.24 |
| 0.17.0 | ~0.27.0 | >=3.0.0,<4.0.0 | >=0.23.0,<0.24 |
| 0.16.0 | ~0.26.0 | >=2.0.0,<3.0.0 | >=0.23.0,<0.24 |
| 0.15.0 | ~0.25.0 | >=1.0.0,<2.0.0 | >=0.23.0,<0.24 |
| 0.14.0 | ~0.25.0 | >=1.0.0,<2.0.0 | >=0.23.0,<0.24 |
| 0.13.1 | ~0.22.0 | >=0.24.0,<0.26 | >=0.20.8,<0.22 |
| 0.13.0 | ~0.22.0 | >=0.24.0,<0.26 | >=0.20.8,<0.22 |
| 0.12.0 | ~0.22.0 | >=0.24.0,<0.25 | >=0.20.8,<0.22 |## License
We use a shared copyright model that enables all contributors to maintain the
copyright on their contributions.This software is licensed under the BSD-3-Clause license. See the [LICENSE](LICENSE) file for details.