Releases: mapbox/mapbox-gl-js
Releases · mapbox/mapbox-gl-js
v3.21.0
Features and improvements ✨
- Introduce the
TileProviderAPI, a mechanism for extending GL JS with custom vector tile providers. - Add first-class support for PMTiles via the new
TileProviderAPI and an official plugin (``mapbox-gl-pmtiles-provider.js`) that loads on demand. - Add experimental
line-blend-modeproperty for rendering lines usingadditiveormultiplyblending. - Slightly improve overall map loading times.
- Improve symbol layer rendering performance (by adopting Uniform Buffer Objects for data-driven properties).
- Improve indoor maps loading performance.
Bug fixes 🐞
- Fix dragging gesture not working on the compass control.
- Various fixes and improvements for the Appearances API.
- Fix an edge case when combining custom icons with images included in the style's sprite.
- Fix
setWorldviewnot updating layout properties correctly. - Fix an issue when rendering stacked underground 3D roads.
- Fix line dashes with non-integer total array lengths.
- Fix various rendering issues when using
*-cutoff-fade-rangeproperties. - Fix
cliplayer not clippingfill-extrusionambient occlusion.
Breaking changes ⚠️
- Removed
mapbox-gl-unminified.jsbundle in the distribution — please switch to eithermapbox-gl.js,mapbox-gl-dev.js, or the newesm-min/mapbox-gl.jsESM bundle. - Removed
spriteFormatMapoption — now Mapbox styles will always use vector icons, while non-Mapbox styles will continue using classic raster sprites.
v3.21.0-rc.1
Features and improvements ✨
- Introduce the
TileProviderAPI, a mechanism for extending GL JS with custom vector tile providers. - Add first-class support for PMTiles via the new
TileProviderAPI and an official plugin (mapbox-gl-pmtiles-provider.js) that loads on demand. - Add experimental
line-blend-modeproperty for rendering lines usingadditiveormultiplyblending. - Slightly improve overall map loading times.
- Improve symbol layer rendering performance (by adopting Uniform Buffer Objects for data-driven properties).
- Improve indoor maps loading performance.
Bug fixes 🐞
- Fix dragging gesture not working on the compass control.
- Various fixes and improvements for the Appearances API.
- Fix an edge case when combining custom icons with images included in the style's sprite.
- Fix
setWorldviewnot updating layout properties correctly. - Fix an issue when rendering stacked underground 3D roads.
- Fix line dashes with non-integer total array lengths.
- Fix various rendering issues when using
*-cutoff-fade-rangeproperties.
Breaking changes ⚠️
- Removed
mapbox-gl-unminified.jsbundle in the distribution — please switch to eithermapbox-gl.js,mapbox-gl-dev.js, or the newesm-min/mapbox-gl.jsESM bundle. - Removed
spriteFormatMapoption — now Mapbox styles will always use vector icons, while non-Mapbox styles will continue using classic raster sprites.
v3.20.0
v3.20.0-rc.2
Bug fixes 🐞
- Fix icons disappearing when changing the color theme.
v3.20.0-rc.1
Features and improvements ✨
- Improve memory efficiency by sharing image resources for symbol layers across map tiles.
Bug fixes 🐞
- Fix display of symbols added via the Appearances runtime API.
v3.19.1
v3.19.0
3.19.0
Features and improvements ✨
- Promote elevated lines properties to stable:
line-z-offsetandline-elevation-reference. - Add experimental
text-size-scale-rangeandicon-size-scale-rangestyle properties. - Add experimental
Map#setScaleFactor/Map#getScaleFactormethods for controlling symbol layer scaling. - Apply global scale factor to images within
text-field. - Fix z-fighting for elevated raster layers.
- Add
raster-elevation-referencepaint property to elevate raster layers relative to ground instead of sea level. - Add
line-elevation-ground-scalelayout property to scale elevated lines with terrain exaggeration. - Use native async/await when loading models. Note: Please ensure GL JS is excluded from transpilation in your build setup.
- Explicitly state minimum supported browser versions in
browserslist. - Support
pitchanddistanceexpressions in filters. - Support incremental updates when using
setFeatureState. - Add experimental
Map#setNearClipOffset/Map#getNearClipOffsetmethods to control the near clip offset when ortohographic projections are used.
Bug fixes 🐞
- Fix
RasterArrayTileSource#reload()not working correctly. - Add request cancellation support to the
ModelSource. - Fix flickering of aliased thin lines.
- Fix elevated line bevel join artifacts at sharp corners.
- Fix regressions in
NavigationControl. - Fix namespace conflicts in different featuresets' selectors.
- Recalculate layers with
visibility: nonein case properties were changed. - Fix bug in border update logic of
fill-extrusionlayer, overriding clip layer's behaviour. - Fix empty tiles on non-integer maxZoom when terrain was used.
- Fix prototype pollution via Style JSON.
v3.19.0-beta.2
Features and improvements ✨
- Promote elevated lines properties to stable:
line-z-offsetandline-elevation-reference. - Add experimental
text-size-scale-rangeandicon-size-scale-rangestyle properties. - Add experimental
Map#setScaleFactor/Map#getScaleFactormethods for controlling symbol layer scaling. - Apply global scale factor to images within
text-field.
Bug fixes 🐞
- Fix
RasterArrayTileSource#reload()not working correctly. - Add request cancellation support to the
ModelSource. - Fix flickering of aliased thin lines.
- Fix elevated line bevel join artifacts at sharp corners.
v3.19.0-beta.1
Features and improvements ✨
- Fix z-fighting for elevated raster layers.
- Add
raster-elevation-referencepaint property to elevate raster layers relative to ground instead of sea level. - Add
line-elevation-ground-scalelayout property to scale elevated lines with terrain exaggeration. - Use native async/await when loading models. Note: Please ensure GL JS is excluded from transpilation in your build setup.
- Explicitly state minimum supported browser versions in
browserslist.
Bug fixes 🐞
- Fix regressions in
NavigationControl. - Fix namespace conflicts in different featuresets' selectors.
- Recalculate layers with
visibility: nonein case properties were changed. - Fix bug in border update logic of
fill-extrusionlayer, overriding clip layer's behaviour.
v3.18.1
Features and improvements ✨
- Add support for
visibilityproperty in clip layers. - Improve
raster-colorprecision for fine-grained value ranges.
Bug fixes 🐞
- Fix color interpolation throwing errors in edge cases.
- Fix appearances with no
icon-size. - Fix disappearing symbols when used with elevated raster layers.