Packages

mapbox-gl

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

Upgrading mapbox-gl From 2.5.1 to 2.6.0

1 release in betweenevery note read

Other targets from 2.5.1Newest 2.x2.15.0Latest3.34.2
  1. 2.5.1yours
  2. 2.6.0target
0
changes to make
0
advisories fixed
6
new
8
fixes

Release by release

  1. 2.6.0

    8 Nov 20216 new · 8 fixes
    • new

      Add support for a variety of new map projections beyond the standard Web Mercator. Alternate projections can be used together with all existing styles and sources. The projections eliminate distortion as you zoom to make them useful at every scale. Supported projections include albers, equalEarth, equirectangular, lambertConformalConic, naturalEarth and winkelTripel. Change the projection by setting it in the map constructor: new Map({ projection: 'winkelTripel', ... }).

    • new

      Add a new "cooperativeGestures": true map option that prevents the map from capturing page scrolling and panning. When enabled, scroll zooming requires ctrl or ⌘ to be pressed and touch panning requires two fingers (#11029, #11116)

    • new

      Add support for dynamic filtering of symbols based on pitch and distance to map center. ["pitch"] and ["distance-from-camera"] expressions can now be used within the filter of a symbol layer.

    • new

      Improve user accessibility: conveying only aria-label in controls, replace aria-pressedwith aria-expanded in the attribution control, interactive markers with popups express an aria-expanded state, and interactive markers have the role "button".