Packages

mapbox-gl

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

Your version

197 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 3.34.2

    3 Nov 2026
  2. 3.34.1

    29 Oct 2026
    • Improve performance on map views with CJK glyphs by moving CJK rasterization offscreen.

    • Improve tile load performance via optimization of style property values recalculation.

    • Improve rendering performance via per-frame main thread work optimizations.

  3. 3.33.0

    13 Oct 2026
    • breaking

      Right-to-left text (such as Arabic and Hebrew) is now supported out of the box, loading a small WebAssembly module the first time it appears on the map. setRTLTextPlugin, getRTLTextPluginStatus and the PluginStatus type are removed.

    • breaking

      The base size of icons in the text-field property is now calculated at the tile zoom level with the largest text size. As a result, the icons can be smaller when the text size depends on the zoom level.

    • Improve memory use & map load time, especially for 3D layers.

  4. 3.32.0

    29 Sep 2026
    • Slightly improve map load time via more aggressive chunk preloading.

    • Improve style parsing performance.

    • Preload Meshopt decoder earlier to improve 3D styles load time.

  5. 3.31.0

    17 Sep 2026
    • removed

      Remove the experimental flag from raster-allow-draping.

    • Significantly improve GeoJSON memory footprint.

    • Reduce landmark model memory usage.

  6. 3.30.0

    3 Sep 2026
    • breaking

      Make pitch and rotation states independent. Previously, disabling rotation also disabled pitch. Now, pitch can be enabled independently of rotation.

    • Extract the terrain from the core ESM module.

    • Reduce shader size by removing unused code paths.

  7. 3.29.0

    20 Aug 2026
    • breaking

      Remove legacy undocumented Map addSourceType API which was superceded by CustomSourceInterface and experimental TileProvider API.

    • Add new raster-color-scale property, which can be set to "log" to improve color ramp precision when visualizing long-tailed raster datasets.

    • Add new raster-allow-draping property that can be set to false to disable raster layer draping over globe/terrain.

  8. 3.28.1

    7 Aug 2026
    • Fix iconsets icons rendering with ESM bundle.

  9. 3.28.0

    5 Aug 2026
    • breaking

      Disable text-variable-anchor when appearances are present.

    • removed

      Remove experimental flag from layer appearances.

    • Introduce experimental map.getVerticalFieldOfView(), map.setVerticalFieldOfView(), and read-only map.getHorizontalFieldOfView() and an animatable fov camera option.

  10. 3.27.0

    23 Jul 2026
    • Upgrade to Typescript 7

    • Add cross-source HD roads elevation for symbols

    • Improve character rotation logic for some CJK characters in vertical text rendering mode

  11. 3.26.0

    9 Jul 2026
    • breaking

      Remove transition and interpolated flags from the camera-projection style property — enum properties cannot be transitioned, so these flags were incorrect.

    • Make published TypeScript declarations self-contained, fixing consumer builds that failed with skipLibCheck: false.

    • Improve terrain raycast accuracy for mouse events, camera fitting, and other pointer interactions.

  12. 3.25.0

    17 Jun 2026
    • breaking

      Switch the ESM entry point to named exports (import * as mapboxgl from 'mapbox-gl/esm') so that modern bundlers can eliminate small unused parts of the code. Replace mapboxgl.accessToken with Map accessToken option. Most of the bundle still can't be statically eliminated, but this release also improves lazy loading of code at runtime, with more improvements on the way.

    • security

      Fix minor vulnerabilities related to Object prototype pollution from an untrusted style or tiles.

    • Extend Map getLayerProperty and setLayerProperty to support layer-level properties (minzoom, maxzoom, filter, slot, appearances)

  13. 3.24.1

    12 Jun 2026
    • Fix an issue with custom layer rendering alongside data-driven line-emissive-strength.

  14. 3.24.0

    18 May 2026
    • Introduce Level of Detail (LOD) support for landmark models, enabling automatic switching between model versions based on camera distance.

    • Support additive blend mode with clamped density by setting the line-blend-additive-clamp property.

    • Improve rendering performance by reducing per-frame matrix allocations.

  15. 3.23.1

    4 May 2026
    • Fix a rendering error occurring with fill-extrusion layers when terrain is enabled in specific edge cases.

  16. 3.23.0

    29 Apr 2026
    • Improve the performance of symbol layers on old devices.

    • Add TileProvider for raster and raster-dem sources, adding support for PMTiles with raster tiles.

    • Enable client-side fontstack compositing by default. When multiple fonts are requested they are now fetched individually and composited on the client.

  17. 3.22.0

    17 Apr 2026
    • Fix a crash on PowerVR devices.

    • Fix nested scopes support in clip layers.

    • Fix Webpack warning on dynamic imports.

  18. 3.21.0

    2 Apr 2026
    • breaking

      Removed mapbox-gl-unminified.js bundle in the distribution — please switch to either mapbox-gl.js, mapbox-gl-dev.js, or the new esm-min/mapbox-gl.js ESM bundle.

    • breaking

      Removed spriteFormat Map option — now Mapbox styles will always use vector icons, while non-Mapbox styles will continue using classic raster sprites.

    • Introduce the TileProvider API, a mechanism for extending GL JS with custom vector tile providers.

  19. 3.20.0

    12 Mar 2026
    • Improve memory efficiency by sharing image resources for symbol layers across map tiles.

    • Fix icons disappearing when changing the color theme.

    • Fix display of symbols added via the Appearances runtime API.

  20. 3.19.1

    4 Mar 2026
  21. 3.19.0

    25 Feb 2026
    • security

      Fix prototype pollution via Style JSON.

    • Promote elevated lines properties to stable: line-z-offset and line-elevation-reference.

    • Add experimental text-size-scale-range and icon-size-scale-range style properties.

  22. 3.18.1

    22 Jan 2026
    • Add support for visibility property in clip layers.

    • Improve raster-color precision for fine-grained value ranges.

    • Fix color interpolation throwing errors in edge cases.

  23. 3.18.0

    14 Jan 2026
    • Add scaleFactor support for images within text-field.

    • Add showButton option to GeolocateControl that allows hiding the control button.

    • Add followUserLocation option and setFollowUserLocation method to GeolocateControl to control whether the map follows the user's location.

  24. 3.17.0

    3 Dec 2025
    • removed

      Remove experimental flag from the extra_bounds property of raster and vector sources.

    • removed

      Remove experimental flag from model layer.

    • removed

      Remove experimental flag from building layer.

  25. 3.16.0

    23 Oct 2025
    • Introduce experimental Appearances API for managing layer styling based on feature state.

    • Add Map setLayerProperty that combines setLayoutProperty & setPaintProperty into one method for convenience.

    • Add support for node/material overrides & other improvements to model source and layer.

  26. 3.15.0

    10 Sep 2025
    • Add queryRasterValue method for querying values in raster-array layers.

    • Add icon-image-use-theme property.

    • Add support for Mapbox vector tiles with precalculated line metrics (for line gradients).

  27. 3.14.0

    30 Jul 2025
    • breaking

      Imported styles will use the glyphs URL template from the root style instead of their own.

    • Add a split expression to divide a string into an array of substrings based on a specified delimiter.

    • Improve memory usage for GeoJSON sources.

  28. 3.13.0

    17 Jun 2025
    • 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.

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

  29. 3.12.0

    8 May 2025
    • Add experimental support for rendering 3D road intersections.

    • Add shadow rendering support for elevated lines.

    • Add wrapTileId property to CustomLayerInterface to control whether tile IDs are wrapped across world copies during rendering.

  30. 3.11.1

    24 Apr 2025
    • Improve icon loading performance, in particular for landmark icons.

    • Fix undefined passed in Marker options not falling back to default values.

  31. 3.11.0

    1 Apr 2025
    • breaking

      The at expression does not interpolate anymore. Please use at-interpolated if you want to keep the old behavior.

    • Add landmark icons. Landmark icons are stylized, uniquely designed POI icons that indicate the most popular and recognizable landmarks on the map. At the time of this release, we have landmarks for 5 cities: London, Berlin, New York City, San Francisco, and Tokyo.

    • Add at-interpolated expression as the interpolated counterpart to the at expression.

  32. 3.10.0

    13 Feb 2025
    • Add support for data-driven *-use-theme properties.

    • Improve rendering of complex SVG clip paths for vector icons.

    • Fix issue where the close popup button was hidden from screen readers.

  33. 3.9.4

    27 Jan 2025
    • Fix vector icons rendering with stretch areas on high DPI devices.

  34. 3.9.3

    15 Jan 2025
    • Fix issues when updating feature state on symbol layers.

    • Fix canvas source not rendering correctly after a canvas resize.

  35. 3.9.2

    3 Jan 2025
    • Fix the display of user-rendered images.

    • Fix a broken build issue in specific bundling configurations using Vite or ESBuild.

    • Fix the console error issue that sometimes occurs during map initialization.

  36. 3.9.1

    23 Dec 2024
    • Fix an error when using background patterns on styles with vector icons enabled.

    • Fix queryRenderedFeatures not working on styles with custom layers.

    • When using queryRenderedFeatures and querySourceFeatures with featureset, fix filter option to apply to featureset selectors rather than original properties, and add featureNamespace validation.

  37. 3.9.0

    18 Dec 2024
    • breaking

      Rename featureset property to target in addInteraction and queryRenderedFeatures options.

    • Add experimental vector icons support.

    • Add experimental precipitation support through snow and rain style properties.

  38. 3.8.0

    12 Nov 2024
    • Add experimental support for style-defined featuresets, an upcoming way to query features in Mapbox Standard and other fragment-based styles.

    • Add experimental Map addInteraction/removeInteraction methods that make it easier to manage map interactions like clicking and hovering over features.

    • Add experimental support for elevated lines with line-cross-slope and line-elevation-reference properties.

  39. 3.7.0

    27 Sep 2024
    • Add background-pitch-alignment property of the background layer, which is set to map by default but can now be set to viewport. Useful for highlighting individual features by dimming the rest of the map with a semitransparent background.

    • Add new control positions (top, right, bottom, and left) (h/t @Ethan-Guttman).

    • Add retainPadding option for camera movement methods, which can be set to false for pre-v3.4 padding behavior.

  40. 3.6.0

    14 Aug 2024
    • Add wall rendering mode to the fill-extrusion layer by introducing fill-extrusion-line-width and fill-extrusion-line-alignment properties. Set fill-extrusion-line-width to a non-zero value to render walls instead of a solid extrusion.

    • Improve initial load performance.

    • Add inner glow effect for negative circle-blur values.

  41. 3.5.2

    18 Jul 2024
    • Improve 3D models rendering performance.

    • Slightly improve terrain rendering performance.

    • Improve TypeScript API, including strongly typed Map event listeners, improved type narrowing, and more.

  42. 3.5.1

    5 Jul 2024

    Revert default behavior of symbol occlusion behind terrain to maintain compatibility. Set icon-occlusion-opacity/text-occlusion-opacity properties to opt-in to new occlusion behavior.

  43. 3.5.0

    4 Jul 2024
    • 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-gl are not fully compatible with the new first-class typings. Users relying on the community typings may experience breaking changes. Please remove the @types/mapbox-gl dependency 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.

    • Add color-theme property and Map setColorTheme method to enable colorization with a lookup table (LUT) images.

    • Significantly improve performance of updateData for GeoJSON sources in dynamic mode.

  44. 3.4.0

    24 May 2024
    • Add dynamic: true option for GeoJSON sources that enables partial update API with source.updateData method. Further optimizations for this mode are expected in future releases.

    • Add Map setConfig, getConfig, setSchema and getSchema methods for batch setting of style configuration options.

    • Add config option for the Map constructor and setStyle methods for conveniently setting style configuration options on map initialization.

  45. 3.3.0

    10 Apr 2024
    • Add a new raster-array source type, representing a new experimental Mapbox Raster Tile format which encodes series of tiled raster data (such as weather time series).

    • Add a new raster-particle layer which animates particles of different speed and color based on underlying raster-array data.

    • Add addImport, moveImport, updateImport, and removeImport API methods.

  46. 3.2.0

    1 Mar 2024
    • removed

      Remove role attribute for non-visible alerts. (h/t @jakubmakielkowski) #13051

    • Improve map loading performance.

    • Add a debug UI for the development build of GL JS, enabled with devtools: true in Map options.

  47. 3.1.2

    25 Jan 2024
    • Fix attribution not being displayed for imported fragments (reintroducing the fix from v3.0.1 that was accidentally missing in v3.1.0).

  48. 3.1.1

    25 Jan 2024
    • Fix fill-extrusions not being displayed in alternative projections.

    • Fix an issue when WebGL might randomly crash to an unrecoverable state on some mobile devices, specifically Safari on iOS.

  49. 3.1.0

    18 Jan 2024
    • Improve performance for maps with many textures (such as styles with satellite imagery), fixing excessive memory usage. (h/t @tristan-morris) #12924

    • Add raster-elevation property for elevating raster layers to a constant height (e.g. clouds over globe).

    • Add raster-emissive-strength and fill-extrusion-emissive-strength properties for controlling 3D lighting on buildings and raster layers.

  50. 3.0.1

    8 Dec 2023
    • Fix attribution not being displayed for imported fragments.