Releases: brendan-ward/pymgl
Version 0.5.0
Breaking changes
- dropped support for Python 3.8; now requires >= 3.9
- dropped support for MacOS 10 and 11; now requires MacOS >= 12. MacOS wheels
are only available for Apple Silicon (Arm64).
Improvements
- upgraded
maplibre-gl-native
to9dbc0ae
, which enables the new Metal
rendering engine on MacOS. - now building manylinux
wheels for Linux, including the required dependencies, which enables pymgl
to be installed directly from PyPI.
Version 0.4.0
Improvements
- migrated bindings from
pybind11
tonanobind
for smaller, faster bindings (#11) - upgraded
maplibre-gl-native
to02c196a
- added several methods to describe layer and map style state (#12):
- added
getFilter
to retrieve a layer's filter and and
setFilter
to set it - added
getVisibility
to retrieve a layer's visibility and
setVisibility
to set it - added
getLayerJSON
to serialize a layer's properties to JSON - added
listLayers
to list layers in the map's style, andlistSources
to list sources
- added
- added
addSource
to add a source to the map andaddLayer
to add a layer (#14) - added
setGeoJSON
to set GeoJSON data for a GeoJSON source in the map (#14) - allow constructing map with an empty style
Map("")
in order to allow adding
sources and layers after construction (#14) - add support for getting and setting paint property of a layer:
getPaintProperty
,setPaintProperty
(#16) - add support for getting, setting, and removing feature state (#17)
Breaking changes
- raise exceptions on certain types of invalid styles passed in as JSON (#13);
not all invalid styles are detected, and remote styles are not checked for
errors at map initialization due to other issues (see #15). Formerly, these
errors were not easily available from the style parsing steps of
maplibre-gl-native
.
Version 0.3.1
Updated Ubuntu wheel building to use native platform instead of custom platform tag.
IMPORTANT: Python wheel names for Ubuntu include .ubuntu-22.04
and .ubuntu-20.04
suffixes, which have to be stripped off before you can install them.
Version 0.3.0
Update to maplibre-gl-native@e4b4810ad288adb4e33e1e81771a9cb6c96a026e.
Adds wheels for Ubuntu 22.04.
To install the Ubuntu wheels, you will need to call pip
with a platform tag and the location in which to install it (typically the site-packages folder of your python environment), here denoted with the PYTHON_SITE_PACKAGES
environment variable:
python -m pip install --find-links <location of wheel or directory containing wheels> --platform ubuntu22_04_x86_64 --target $PYTHON_SITE_PACKAGES --no-deps
Platform tags are ubuntu22_04
and ubuntu20_04
.
v0.2.2
Updates to latest maplibre-gl-native which now avoids an abort when tilesets are not found, allowing us to capture them here as a runtime exception.
v0.2.1
update maplibre-gl-native