Packages

mapbox-gl

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

Your version

2.1.0

4 Feb 2021Where it was published

2.15.0 is the newest release of 2.x.

In short

5 new7 fixed

Release note

Features and improvements

  • Added localFontFamily map option that enables local generation of all font glyphs.

  • Introduced high resolution local glyph generation for improved rendering quality of glyphs generated using localIdeographFontFamily or localFontFamily options.

  • Added optimizeForTerrain map option allowing to use terrain in layer draw-order or performance priority mode. This fixes terrain not always preserving layer draw-order during animations by making the behavior explicit.

  • Improved performance by slightly shifting the horizon down, reducing the number of tiles loaded for highly-pitched maps.

  • Improved evented.once(eventName) to return a promise if no listener function is provided, which allows using async/await with map events for a simpler and more readable code.

Bug fixes

  • Fixed querying of fill-extrusions when terrain is enabled.

  • Fixed a bug where close points were sometimes not clustered on higher zoom levels given a small clustering radius. Fixed clusterMaxZoom so that it is not capped by the source maxzoom.

  • Fixed blurry map-aligned labels on highly pitched maps with terrain.

  • Fixed a race condition when evaluating image expressions by ensuring sprite has loaded before parsing tiles.

  • Fixed a bug with fullscreen fill-extrusion querying at low pitch.

  • Fixed a regression with the usage of patterns with data-driven styling.

  • Ensure evented.listens returns false when no listener is available.