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
5 new6 fixed
Release note
Features ✨ and improvements
Added
queryRenderedFeaturessupport to heatmap layers.Added support for using
line-gradientandline-dasharraypaint properties together on line layers.Added
preclickevent allowing popups to close and open in a new location on one click.Improved collision detection for labels along lines, slightly improving label density.
Improved Popup
addClassName,removeClassNameandtoggleClassNamemethods to work on popup instances that are not added to the map.⚠️ Note: Direct modifications to the popup container CSS class no longer persist. These methods should be used instead.
Bug fixes
Fixed
maxBoundsproperty not working across the 180th meridian.Fixed
map.getBounds()returning too-large bounds under some conditions.Fixed markers not updating position when toggling terrain.
Fixed gap on edge of map on retina displays.
Fixed SDF images rendering inside text.
Fixed an issue with slow tile loading performance on maps with CJK glyphs on certain Chrome/GPU combinations.