mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
3.34.2 is the newest release of 3.x.
In short
1 breaking10 new9 fixed
- breaking
This release marks a significant transition for GL JS, moving from Flow to TypeScript. While we have maintained backward compatibility where possible, the community typings
@types/mapbox-glare not fully compatible with the new first-class typings. Users relying on the community typings may experience breaking changes. Please remove the@types/mapbox-gldependency and refer to the v3.5.0 migration guide for instructions on upgrading, resolving common issues, and asking questions regarding the migration to the first-class typings. We welcome your feedback and contributions to make Mapbox GL JS better.
Release note
Breaking changes
- breaking
This release marks a significant transition for GL JS, moving from Flow to TypeScript. While we have maintained backward compatibility where possible, the community typings
@types/mapbox-glare not fully compatible with the new first-class typings. Users relying on the community typings may experience breaking changes. Please remove the@types/mapbox-gldependency and refer to the v3.5.0 migration guide for instructions on upgrading, resolving common issues, and asking questions regarding the migration to the first-class typings. We welcome your feedback and contributions to make Mapbox GL JS better.
Features and improvements
Add
color-themeproperty andMapsetColorThememethod to enable colorization with a lookup table (LUT) images.Significantly improve performance of
updateDataforGeoJSONsources indynamicmode.Add
icon-occlusion-opacityandtext-occlusion-opacityproperties to fade symbols behind models and landmarks.Add
line-occlusion-opacityproperty to fade lines behind 3D objects.Add experimental
cliplayer to filter out rendering data.Add experimental
line-z-offsetproperty for a non-globe view.Add
model-cutoff-fade-rangeproperty to control fade out of faraway 3D buildings.Improve precision of
line-patternon long lines and higher zooms.Add experimental
line-trim-colorandline-trim-fade-rangeproperties to customize rendering of lines trimmed withline-trim-offset.Add
MapgetSlotsmethod for listing available slots of a style.
Bug fixes
Fix a performance regression in Standard style introduced in v3.4.0.
Fix icon rotation during globe transition.
Fix GeoJSON data loss due to frequent
updateDatacalls.Improve
raster-particlelayer animation.Fix
model-front-cutoffproperty for Meshopt-encoded models.Fix errors in the console on empty 3D tiles.
Fix not properly detecting fingerprinting protection when adding terrain through
setTerrain.Fix
style.loadevent missingstyleproperty.Fix errors when using
queryRenderedFeatureson areas with missing DEM tiles when terrain is enabled.