Packages

mapbox-gl

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

Your version

2.2.0

25 Mar 2021Where it was published

2.15.0 is the newest release of 2.x.

In short

5 new11 fixed1 internal

Release note

Features and improvements

  • Improve geojsonSource.setData(...) performance in Safari

  • Add map.getTerrain() method

  • Add showTerrainWireframe map debug option for displaying terrain wireframe

  • Document the default limit and offset of geojsonSource.getClusterLeaves(...) (#10403) (h/t henk23)

  • (Development) Update dev environment to native ES modules to support Node 14+

Bug fixes

  • Fix map.getBounds() to return the inset bounds when map padding is set

  • Support flat roofs for fill-extrusions when using custom data sources with terrain

  • Fix flickering accuracy circle in GeolocateControl. (#10334) (h/t anderswi)

  • Show Mapbox logo if no style is provided for the map

  • Switch to using alphabetic baseline for locally-rendered glyphs to avoid misalignment on fonts with large ascenders/descenders.

  • Fix incorrect diffing of styles when using raster DEM tile sources

  • Fix queryRenderedFeatures(...) for fill-extrusions partly behind the camera

  • Fix artifacts caused by negative terrain elevation

  • Reset WebGL culling state before drawing custom layers

  • Fix DOM event coordinates for scaled containers (#10096) (h/t kawsndriy)

  • Fix collectResourceTiming errors