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 new3 fixed
- breaking
Remove legacy undocumented
MapaddSourceTypeAPI which was superceded byCustomSourceInterfaceand experimentalTileProviderAPI.
Release note
Breaking changes
- breaking
Remove legacy undocumented
MapaddSourceTypeAPI which was superceded byCustomSourceInterfaceand experimentalTileProviderAPI.
Features and improvements
Add new
raster-color-scaleproperty, which can be set to"log"to improve color ramp precision when visualizing long-tailed raster datasets.Add new
raster-allow-drapingproperty that can be set tofalseto disable raster layer draping over globe/terrain.Move
symbol-z-offsetproperty out of experimental.Extend
distanceexpression to accept an expression as a second argument.Extend
configexpression to support object literals as values.Improve dashed line rendering in pitched views.
Added APIs for more granular control of interaction handlers:
map.keyboard:disablePitch,enablePitch,isPitchEnabled,disableBearing,enableBearing,isBearingEnabled,isEnabledmap.dragRotate:disableRotation,enableRotation,isRotationEnabledmap.touchZoomRotate:isRotationEnabled,isTapDragZoomEnabledFor all three,
isEnabledis changed from AND to OR semantics
Bug fixes
Fix rare line artifacts on sharp corners with short segments and non-bevel joins.
Fix ambient occlusion to not render for elevated (non-zero-base) extrusions.
Fix
MapresetFeatureStatesnot working properly in some scoped styles.