mapbox-gl
3.34.2 · 3 Nov 2026SEE LICENSE IN LICENSE.txt6M / weekRepositoryHomepagenpmAtom feed
Upgrading mapbox-gl From 2.8.2 to 2.9.0
1 release in betweenevery note read
Release by release
- new
Add
globeprojection. This new projection displays the map as a 3d globe and can be enabled by either passingprojection: globeto the map constructor or by callingmap.setProjection('globe'). All layers are supported by globe except for Custom Layers and Sky. - new
Extend atmospheric
fogwith three new style specification properties:high-color,space-colorandstar-intensityto allow the design of atmosphere around the globe and night skies. - new
Add a new line layer paint property in the style specification:
line-trim-offsetthat can be used to create a custom fade out with improved update performance overline-gradient. - new
Add an option for providing a geolocation adapter to
GeolocateControl. (#10400) (h/t behnammodi)
- new