Packages

mapbox-gl

3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed

Your version

3.13.0

17 Jun 2025Where it was published

3.34.2 is the newest release of 3.x.

In short

2 breaking4 new15 fixed1 internal

  • breaking

    interpolate expression will interpolate between non-alpha-premultiplied colors. The change might affect raster-particle-color, line-gradient, and heatmap-color.

  • breaking

    rgb expression will return non-premultiplied-alpha color.

Release note

Breaking changes

  • breaking

    interpolate expression will interpolate between non-alpha-premultiplied colors. The change might affect raster-particle-color, line-gradient, and heatmap-color.

  • breaking

    rgb expression will return non-premultiplied-alpha color.

Features and improvements

  • Add the ["worldview"] expression, which returns the current worldview of the map.

  • Add model-translation support for batched model layers.

  • Improve indoor level interaction.

  • Add support of gradient transforms in the fill style of vector icons.

Bug fixes

  • Fix querying and styling issues with multiple model layers referencing the same source.

  • Fix mapbox-gl-rtl-text v0.3.0 plugin not loading in certain configurations.

  • Fix icons with text-variable-anchor disappearing.

  • Fix minor distortions on vector icons in some cases.

  • Fix zooming over terrain with negative altitude values.

  • Fix interactions to not throw on mouseleave without mouseenter.

  • Fix shadow rendering issues on underground structures.

  • Fix striping artifacts when rendering shadows on some GPU configurations.

  • Fix errors when viewing a style with filtered model layers.

  • Fix parsing of color-use-theme property of 3D lights.

  • Fix feature-dependent config expressions (h/t @brncsk) #13453.

  • Fix reset of the indoor floorplan selection after moving the camera.

  • Fix excessive rerendering of the map after setStyle with the same URL of an import.

  • Fix source reloading during mercator-globe transition with terrain.

  • Fix color of semi-transparent vector icons.