xleaflet is a header-only library but depends on some traditional libraries that need to be installed. On Linux, installation of the dependencies can be done through the package manager, anaconda or manual compilation.
Using the conda package¶
A package for xleaflet is available on the conda package manager. The package will also pull all the dependencies.
conda install xleaflet -c conda-forge
From source with cmake¶
You can also install
xleaflet from source with cmake. On Unix platforms, from the source directory:
However, you need to make sure to have the required libraries available on your machine.
cmake -DCMAKE_INSTALL_PREFIX=/path/to/prefix ..
On Windows platforms, from the source directory:
cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=/path/to/prefix ..