Packages

mapbox-gl

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

Your version

2.7.0

31 Jan 2022Where it was published

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 of line-opacity.

  • Add perspective correction for non-rectangular image, canvas and video sources.

  • Improve performance of default markers.

  • Add marker methods setSnapToPixel and getSnapToPixel to indicate rounding a marker to pixel. (#11167) (h/t malekeym)

  • Add a default aria-label for 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 getBounds sometimes returning invalid LngLat when 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 Map attribution element.

  • Fix a rare terrain flickering issue when using terrain with multiple vector data sources.