Packages

mapbox-gl

3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed

Your version

0.6.0

10 Feb 2015Where it was published

0.54.1 is the newest release of 0.6.x.

In short

5 breaking5 new6 fixed

  • breaking

    Updated to mapbox-gl-style-spec v7.0.0 (Changelog). Styles are now expected to be version 7. You can use the gl-style-migrate utility to update existing styles.

  • breaking

    HTTP_URL and HTTPS_URL config options must no longer include a /v4 path prefix.

  • breaking

    addClass, removeClass, setClasses, hasClass, and getClasses are now methods on Map.

  • breaking

    Style#cascade is now private, pending a public style mutation API (#755).

  • breaking

    The format for featuresAt results changed. Instead of result-per-geometry-cross-layer, each result has a layers array with all layers that contain the feature. This avoids duplication of geometry and properties in the result set.

Release note

Bugfixes

  • Add wrapped padding to sprite for repeating images

  • Clear color buffers before rendering

  • Make line-opacity work with line-image

  • Event.toElement fallback for Firefox

  • Skip duplicate vertices at ends of lines

  • Allow characters outside \w to be used in token

  • Clear old tiles when new GeoJSON is loaded

Improvements

  • Added map.setPaintProperty(), map.getPaintProperty(), map.setLayoutProperty(), and map.getLayoutProperty().

  • Switch to ESLint and more strict code rules

  • Grab 2x raster tiles if retina

  • Support for mapbox:// style URLs

Breaking

  • breaking

    Updated to mapbox-gl-style-spec v7.0.0 (Changelog). Styles are
    now expected to be version 7. You can use the gl-style-migrate
    utility to update existing styles.

  • breaking

    HTTP_URL and HTTPS_URL config options must no longer include a /v4 path prefix.

  • breaking

    addClass, removeClass, setClasses, hasClass, and getClasses are now methods
    on Map.

  • breaking

    Style#cascade is now private, pending a public style mutation API (#755).

  • breaking

    The format for featuresAt results changed. Instead of result-per-geometry-cross-layer,
    each result has a layers array with all layers that contain the feature. This avoids
    duplication of geometry and properties in the result set.