Packages

mapbox-gl

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

Your version

2.8.0

7 Apr 2022Where it was published

2.15.0 is the newest release of 2.x.

In short

3 faster12 fixed1 changed

Release note

Performance improvements

  • Improve memory usage by freeing memory more eagerly after loading tiles.

  • Improve memory usage by reducing repeated line labels on overscaled tiles.

  • Improve performance when placing many symbols on terrain.

Bug fixes

  • Fix map.fitBounds(), map.fitScreenCoordinates(), and map.cameraForBounds() incorrectly matching bounds with non-zero bearing. (#11568) (h/t TannerPerrien)

  • Improve control button appearance by applying border-radius more consistently. (#11423) (h/t nagix)

  • Fix ScaleControl displaying incorrect units with some projections.

  • Fix performance regression when animating image sources.

  • Fix MapDataEvent.isSourceLoaded() to check if specific source has loaded.

  • Fix map not wrapping after moving the map with no inertia.

  • Fix popup not removing event listeners when closeOnClick:true.

  • Fix camera occasionally intersecting terrain when DEM data loads while zooming. (#11461, #11578)

  • Increase clarity of line layers with the terrain on high DPI devices.

  • Fix canvas size if more than one parent container has a transform CSS property.

  • Fix error on calling map.removeImage() on animated image.

  • Fix occasional issue with fill-extrusion layers not rendering on tile borders when used with terrain.

Workflow

  • Upgrade Flow from v0.108.0 to v0.142.0 and enable type-first mode, greatly improving performance of type-checking.