Packages

mapbox-gl

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

Your version

2.10.0

23 Aug 2022Where it was published

2.15.0 is the newest release of 2.x.

In short

7 new7 fixed

Release note

Features ✨ and improvements

  • Add new marker styling option rotationAlignment: 'horizon' allowing marker rotation to match the curvature of the horizon in globe view

  • Improve panning precision on Globe View and relax constraints on lower zoom levels

  • Add unit option to number-format expression (#11839) (h/t varna)

  • Add screen reader alert for cooperative gestures warning message.

  • Improve rendering performance on globe view

  • Improve tile loading performance on low zoom levels

  • Improve globe-mercator transition and map load performance with globe projection

Bug fixes

  • Fix a bug where id expression didn't correctly handle a value of 0

  • Fix precision errors in depth pack/unpack

  • Fix cooperativeGestures preventing panning on mobile while in fullscreen.

  • Fix misplaced raster tiles after toggling setStyle with a globe projection

  • Fix exception on creating map in an iframe with sandbox attribute.

  • Fix "improve map" link in the attribution to include location even if map hash is disabled

  • Fix Chrome console warnings about ignored event cancel on touch interactions (#12121) (h/t jschaf)