mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
0.54.1 is the newest release of 0.9.x.
In short
2 new14 changed
Release note
glyphsURL now normalizes without the/v4/prefix formapbox://urls. Legacy behavior formapbox://fontstacksis still maintainedExpose
geojson-vtoptions for GeoJSON sourcesBearing snaps to "North" within a tolerance of 7 degrees
Now you can directly mutate the minzoom and maxzoom layer properties with
map.setLayerZoomRange(layerId, minzoom, maxzoom)Exposed
mapboxgl.Control, a base class used by all UI controlsRefactored handlers to be individually included in Map options, or enable/disable them individually at runtime, e.g.
map.scrollZoom.disable().New feature: Batch operations can now be done at once, improving performance for calling multiple style functions:
style.batch(function(s) { s.addLayer({ id: 'first', type: 'symbol', source: 'streets' }); s.addLayer({ id: 'second', type: 'symbol', source: 'streets' }); s.addLayer({ id: 'third', type: 'symbol', source: 'terrain' }); s.setPaintProperty('first', 'text-color', 'black'); s.setPaintProperty('first', 'text-halo-color', 'white'); });Improved documentation
featuresAtperformance improvements by exposingincludeGeometryoptionBetter label placement along lines
Improvements to round linejoins on semi-transparent lines (mapbox/mapbox-gl-native#1771)
Round zoom levels for raster tile loading (2a2aec)
Source#reload cannot be called if source is not loaded
Events bubble to the canvas container for custom overlays
Move handlers are now bound on mousedown and touchstart events
Map.featuresAt() now works across the dateline