mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
2.15.0 is the newest release of 2.x.
In short
9 new5 fixed
Release note
Features ✨ and improvements
Enable preloading tiles for camera animation.
Improve quality of transparent line layers by removing overlapping geometry artifacts. (#11082). Note: removing that feature can be done by using the line color alpha channel, e.g.
line-color: "rgba(r, g, b, 0.5)"instead ofline-opacity.Add perspective correction for non-rectangular image, canvas and video sources.
Improve performance of default markers.
Add marker methods
setSnapToPixelandgetSnapToPixelto indicate rounding a marker to pixel. (#11167) (h/t malekeym)Add a default
aria-labelfor interactive markers for improved user accessibility.Add support for sparse tile sets to DEM data sources, when served tiles don't go up to the full
maxzoom.Allow users to set order of custom attribution.
Add function call chaining to function
map.setProjection(#11279) (h/t lpizzinidev)
Bug fixes
Fix canvas size to evaluate to expected value when applying the CSS transform property.
Fix
getBoundssometimes returning invalidLngLatwhen zooming on a map with terrain. (#11339) (h/t @ted-piotrowski)Fix rendering of denormalized strings with diacritics.
Remove redundant title attribute from
Improve this Mapattribution element.Fix a rare terrain flickering issue when using terrain with multiple vector data sources.