Packages

mapbox-gl

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

Your version

0.22.0

12 Aug 2016Where it was published

0.54.1 is the newest release of 0.22.x.

In short

2 breaking5 new8 fixed

  • 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

Release note

Breaking Changes

  • 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 Features & Improvements

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

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

  • Update geolocate icon #2973

  • Add a close event to Popups #2953

  • Add a offset option to Marker #2885

  • Print error events without any listeners to the console #2852

  • Refactored Source interface to prepare for custom source types #2667

Bugfixes

  • Fix opacity property-functions for fill layers #2971

  • Fix DataCloneError in Firefox and IE11 #2559

  • Fix bug preventing camera animations from being triggered in moveend listeners #2944

  • Fix bug preventing fill-outline-color from being unset #2964

  • Fix webpack support #2887

  • Prevent buttons in controls from acting like form submit buttons #2935

  • Fix bug preventing map interactions near two controls in the same corner #2932

  • Fix crash resulting for large style batch queue #2926