mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
1.13.3 is the newest release of 1.x.
In short
1 security5 new11 fixed3 changed
- security
Upgrade minimist to ^1.2.5 to get fix for security issue CVE-2020-7598 upstream (#9425, fixed by #9425) (h/t watson)
Release note
Features
Add
mapboxgl.prewarm()andmapboxgl.clearPrewarmedResources()methods to allow developers to optimize load times for their mapsAdd
index-ofandsliceexpressions to search arrays and strings for the first occurrence of a specified value and return a section of the original array or string (#9450) (h/t lbutler)Correctly set RTL text plugin status if the plugin URL could not be loaded. This allows developers to add retry logic on network errors when loading the plugin
Gestures
This release significantly refactors and improves gesture handling on desktop and mobile. Three new touch gestures have been added: two-finger swipe to adjust pitch, two-finger double-tap to zoom out, and tap then drag to adjust zoom with one finger (#9365). In addition, this release brings the following changes and bug fixes:
It's now possible to interact with multiple maps on the same page at the same time
Fix map jump when releasing one finger after pinch zoom
Stop
mousedownandtouchstartfrom interruptingeaseToanimations when interaction handlers are disabledStop mouse wheel from interrupting animations when
map.scrollZoomis disabledA camera change can no longer be prevented by disabling the interaction handler within the camera change event. Selectively prevent camera changes by listening to the
mousedownortouchstartmap event and calling .preventDefault()Undocumented properties on the camera change events fired by the
doubleClickZoomhandler have been removed
Improvements and bug fixes
Line labels now have improved collision detection, with greater precision in placement, reduced memory footprint, better placement under pitched camera orientations
Fix
GlyphManagercontinually re-requesting missing glyph ranges (#8027, fixed by #9375) (h/t oterral)Avoid throwing errors when calling certain popup methods before the popup element is created
Fix a bug where fill-extrusion features with colinear points were not returned by
map.queryRenderedFeatures(...)Fix a bug where using feature state on a large input could cause a stack overflow error
Fix exception when using
background-patternwith data driven expressions (#9518, fixed by #9520)Fix a bug where UI popups were potentially leaking event listeners (#9498) (h/t mbell697)
Fix a bug where the
withinexpression would return inconsistent values for points on tile boundaries (#9411, #9428)Fix a bug where the
withinexpression would incorrectly evaluate geometries that cross the antimeridianFix possible undefined exception on paint variable of style layer (#9437) (h/t mannnick24)
- security
Upgrade minimist to ^1.2.5 to get fix for security issue CVE-2020-7598 upstream (#9425, fixed by #9425) (h/t watson)