Packages

mapbox-gl

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

Your version

2.5.0

29 Sep 2021Where it was published

2.15.0 is the newest release of 2.x.

In short

5 new6 fixed

Release note

Features ✨ and improvements

  • Added queryRenderedFeatures support to heatmap layers.

  • Added support for using line-gradient and line-dasharray paint properties together on line layers.

  • Added preclick event 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, removeClassName and toggleClassName methods 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 maxBounds property 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.