mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
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
/v4path prefix. - breaking
addClass,removeClass,setClasses,hasClass, andgetClassesare now methods on Map. - breaking
Style#cascadeis now private, pending a public style mutation API (#755). - breaking
The format for
featuresAtresults changed. Instead of result-per-geometry-cross-layer, each result has alayersarray 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(), andmap.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
/v4path prefix. - breaking
addClass,removeClass,setClasses,hasClass, andgetClassesare now methods
on Map. - breaking
Style#cascadeis now private, pending a public style mutation API (#755). - breaking
The format for
featuresAtresults changed. Instead of result-per-geometry-cross-layer,
each result has alayersarray with all layers that contain the feature. This avoids
duplication of geometry and properties in the result set.