Skip to main content

Python bindings for MapLibre GL JS

Project description

MapLibre for Python

Release pypi Conda recipe Conda package Build status License MapLibre

MapLibre for Python provides Python bindings for MapLibre GL JS. Furthermore, Deck.GL Layers can be mixed with MapLibre Layers.

It integrates seamlessly into Shiny for Python and Jupyter.

Installation

# Stable
pip install maplibre

pip install "maplibre[all]"

# Dev
pip install git+https://github.com/eodaGmbH/py-maplibregl@dev

pip install "maplibre[all] @ git+https://github.com/eodaGmbH/py-maplibregl@dev"

# Conda
conda install -c conda-forge maplibre

Quickstart

from maplibre import Map, MapOptions

m = Map(MapOptions(center=(-123.1256, 49.24658), zoom=9))

Documentation

Development

Python

poetry install

poetry run pytest

poetry run pytest --ignore=maplibre/ipywidget.py --doctest-modules maplibre

JavaScript

npm install

npm run prettier

npm run build

npm run build-ipywidget

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maplibre-0.2.6.tar.gz (485.0 kB view hashes)

Uploaded Source

Built Distribution

maplibre-0.2.6-py3-none-any.whl (494.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page