Skip to content

Releases: brendan-ward/pymgl

Version 0.5.0

30 Sep 20:12
5a84edf
Compare
Choose a tag to compare

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 to 9dbc0ae, 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

12 Jun 18:06
a04edeb
Compare
Choose a tag to compare

Improvements

  • migrated bindings from pybind11 to nanobind for smaller, faster bindings (#11)
  • upgraded maplibre-gl-native to 02c196a
  • 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, and listSources
      to list sources
  • added addSource to add a source to the map and addLayer 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

10 Jan 17:32
fe554bc
Compare
Choose a tag to compare

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

07 Jan 03:28
94e3d99
Compare
Choose a tag to compare

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

30 May 19:08
705372e
Compare
Choose a tag to compare

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

19 Apr 18:33
c88e652
Compare
Choose a tag to compare
update maplibre-gl-native

v0.2.0

06 Apr 01:27
61c6397
Compare
Choose a tag to compare

Initial version of PyMGL with packages available for installation. See README for installation and usage instructions.