Packages

mapbox-gl

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

Upgrading mapbox-gl From 0.21.0 to 0.22.0

1 release in betweenevery note read

Other targets from 0.21.0Newest 0.x0.54.1Latest3.34.2
  1. 0.21.0yours
  2. 0.22.0target

Before you upgrade

Tick each one off as you go
  • breaking0.22.0
  • breaking0.22.0

Release by release

  1. 0.22.0

    Migration needed12 Aug 20165 new · 8 fixes
    • breaking

      The GeoJSONSource, VideoSource, ImageSource constructors are now private. Please use map.addSource({...}) to create sources and map.getSource(...).setData(...) to update GeoJSON sources. #2667

    • breaking

      Map#onError has been removed. You may catch errors by listening for the error event. If no listeners are bound to error, error messages will be printed to the console. #2852

    • new

      Increase max glyph atlas size to accomodate alphabets with large numbers of characters #2930

    • new

      Add support for filtering features on GeoJSON / vector tile $id #2888