mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
2.15.0 is the newest release of 2.x.
In short
5 new7 fixed
Release note
Features and improvements
Added
localFontFamilymap option that enables local generation of all font glyphs.Introduced high resolution local glyph generation for improved rendering quality of glyphs generated using
localIdeographFontFamilyorlocalFontFamilyoptions.Added
optimizeForTerrainmap 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 usingasync/awaitwith 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
clusterMaxZoomso that it is not capped by the sourcemaxzoom.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-extrusionquerying at low pitch.Fixed a regression with the usage of patterns with data-driven styling.
Ensure
evented.listensreturnsfalsewhen no listener is available.