mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
0.54.1 is the newest release of 0.22.x.
In short
2 breaking5 new8 fixed
- breaking
The
GeoJSONSource,VideoSource,ImageSourceconstructors are now private. Please usemap.addSource({...})to create sources andmap.getSource(...).setData(...)to update GeoJSON sources. #2667 - breaking
Map#onErrorhas been removed. You may catch errors by listening for theerrorevent. If no listeners are bound toerror, error messages will be printed to the console. #2852
Release note
Breaking Changes
- breaking
The
GeoJSONSource,VideoSource,ImageSourceconstructors are now private. Please usemap.addSource({...})to create sources andmap.getSource(...).setData(...)to update GeoJSON sources. #2667 - breaking
Map#onErrorhas been removed. You may catch errors by listening for theerrorevent. If no listeners are bound toerror, 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#2888Update geolocate icon #2973
Add a
closeevent toPopups #2953Add a
offsetoption toMarker#2885Print
errorevents without any listeners to the console #2852Refactored
Sourceinterface to prepare for custom source types #2667
Bugfixes
Fix opacity property-functions for fill layers #2971
Fix
DataCloneErrorin Firefox and IE11 #2559Fix bug preventing camera animations from being triggered in
moveendlisteners #2944Fix bug preventing
fill-outline-colorfrom being unset #2964Fix 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