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
7 new8 fixed
Release note
With this release, we're adding a new changelog policy to our contribution guidelines.
This release also fixes several long-standing bugs and unintentional rendering behavior with line-pattern. The fixes come with a visual change to how patterns added with line-pattern scale. Previously, patterns that became larger than the line would be clipped, sometimes distorting the pattern, particularly on mobile and retina devices. Now the pattern will be scaled to fit under all circumstances. #9266 showcases examples of the visual differences. For more information and to provide feedback on this change, see #9394.
Features
Add
withinexpression for testing whether an evaluated feature lies within a given GeoJSON object (#9352).We are aware of an edge case in which points with wrapped coordinates (e.g. longitude -185) are not evaluated properly. See (#9442) for more information.
An example of the
withinexpression:"icon-opacity": ["case", ["==", ["within", "some-polygon"], true], 1, ["==", ["within", "some-polygon"], false], 0]
Map API functions such as
easeToandflyTonow supportpadding: PaddingOptionswhich lets developers shift a map's center of perspective when building floating sidebars
Improvements
Results from
queryRenderedFeaturesnow have evaluated property values rather than raw expressionsImprove scaling of patterns used in
line-patternon all device resolutions and pixel ratiosSlightly improve GPU memory footprint
LngLatBounds.extendis more flexible because it now accepts objects withlatandlonproperties as well as arrays of coordinatesReduce bundle size and improve visual quality of
showTileBoundariesdebug text
Bug fixes
Correctly adjust patterns added with
addImage(id, image, pixelRatio)by the asset pixel ratio, not the device pixel ratioAllow needle argument to
inexpression to be falseFix exception thrown when trying to set
feature-statefor a layer that has been removed, fixes #8634Fix a bug where maps were not displaying inside elements with
dir=rtlFix a rendering error for very old versions of Chrome (ca. 2016) where text would appear much bigger than intended
Prevent exception resulting from
line-dash-arrayof empty lengthFix a bug where
icon-imageexpression that evaluates to an empty string ('') produced a warningFix a bug where certain
popupmethods threw errors when accessing the container element before it was created, fixes #9429