Releases: mapbox/mapbox-gl-js
Releases · mapbox/mapbox-gl-js
v3.16.0
Features and improvements ✨
- Introduce experimental Appearances API for managing layer styling based on feature state.
- Add
MapsetLayerPropertythat combinessetLayoutProperty&setPaintPropertyinto one method for convenience. - Add support for node/material overrides & other improvements to
modelsource and layer. - Various improvements & fixes for upcoming 3D features (indoor, procedural buildings & elevated roads).
- Add response headers to the
sourcedataevent data. - Improve TypeScript types for style specification.
Bug fixes 🐞
- Fix raster particle layer not rendering correctly on styles with emissive light.
- Fix icons of different sizes rendering incorrectly in appearances.
- Fix worldview filtering with dynamic expressions.
- Improve accuracy of
queryRenderedFeaturesfor model layers. - Fix a bug with heatmap sometimes disappearing after switching projection.
- Fix rendering of model layer with vector source on globe projection.
- Fix flickering of fill-extrusion buildings when using clip layers.
- Fix inaccuracies in 3D model query intersection.
- Fix the passing of
GeolocationPositiontogeolocateevent listeners. - Fix the placement of line-aligned text with a non-default
scaleFactor.
v3.16.0-beta.2
Features and improvements ✨
- Introduce experimental Appearances API for managing layer styling based on feature state.
- Add
MapsetLayerPropertythat combinessetLayoutProperty&setPaintPropertyinto one method for convenience. - Add support for node/material overrides & other improvements to
modelsource and layer. - Various improvements & fixes for upcoming 3D features (indoor, procedural buildings & elevated roads).
Bug fixes 🐞
- Improve accuracy of
queryRenderedFeaturesfor model layers. - Fix a bug with heatmap sometimes disappearing after switching projection.
- Fix rendering of model layer with vector source on globe projection.
v3.16.0-beta.1
Features and improvements ✨
- Add response headers to the
sourcedataevent data. - Improve TypeScript types for style specification.
Bug fixes 🐞
- Fix flickering of fill-extrusion buildings when using clip layers.
- Fix inaccuracies in 3D model query intersection.
- Fix the passing of
GeolocationPositiontogeolocateevent listeners. - Fix the placement of line-aligned text with a non-default
scaleFactor.
v3.15.0
3.15.0
Features and improvements ✨
- Add
queryRasterValuemethod for querying values inraster-arraylayers. - Add
icon-image-use-themeproperty. - Add support for Mapbox vector tiles with precalculated line metrics (for line gradients).
- Improve HD Roads loading performance.
- Optimize applying LUT when updating images at runtime.
- Improve TypeScript types in Style Spec validation methods.
- Slightly improve
hslaexpression performance. - Optimize applying LUT for patterns.
- Round
queryRasterValueresults to 12 decimal digits to fix precision issues. - Improvements on typing and testing.
Bug fixes 🐞
- Fix an issue with refreshing expired raster array tiles.
- Fix an error on GeoJSON with
"Infinity"and similar ids. - Fix
GL_INVALID_VALUEconsole warning on Mapbox Satellite Standard and a few other styles. - Fix model layer positioning during globe to mercator transition.
- Fix an issue with incorrect transparency for some icons with LUT applied.
- Fix an issue where updating
*-occlusion-opacityproperties didn't have any effect. - Fix an issue with MRT layers throwing an error when reloading.
- Fix occlusion layer ordering.
- Fix an issue where using too many data-driven properties on the symbol layer could break the map.
- Fix gradients and interpolations with fully-transparent colors.
- Fix model layer density reduction.
- Fix performance regression on styles that use feature-state expressions.
v3.15.0-beta.2
3.15.0-beta.2
Features and improvements ✨
- Slightly improve
hslaexpression performance. - Optimize applying LUT for patterns.
- Round
queryRasterValueresults to 12 decimal digits to fix precision issues.
Bug fixes 🐞
- Fix an error on GeoJSON with `"Infinity"`` and similar ids.
- Fix
GL_INVALID_VALUEconsole warning on Mapbox Satellite Standard and a few other styles. - Fix model layer positioning during globe to mercator transition.
- Fix an issue with incorrect transparency for some icons with LUT applied.
- Fix an issue where updating
*-occlusion-opacityproperties didn't have any effect.
v3.15.0-beta.1
Features and improvements ✨
- Add
queryRasterValuemethod for querying values inraster-arraylayers. - Add
icon-image-use-themeproperty. - Add support for Mapbox vector tiles with precalculated line metrics (for line gradients).
- Improve HD Roads loading performance.
- Optimize applying LUT when updating images at runtime.
- Improve TypeScript types in Style Spec validation methods.
Bug fixes 🐞
- Fix an issue with refreshing expired raster array tiles.
v3.14.0
Breaking changes ⚠️
- Imported styles will use the
glyphsURL template from the root style instead of their own.
Features and improvements ✨
- Add a
splitexpression to divide a string into an array of substrings based on a specified delimiter. - Improve memory usage for GeoJSON sources.
Bug fixes 🐞
- Fix an issue with querying rendered features during the globe-to-Mercator transition.
- Fix resources cleanup when removing a map with a terrain or/and vector icons.
- Fix an issue where a single primary image was not rendered correctly with
icon-image-cross-fade. - Fix an edge case involving the mixing of vertical and horizontal writing modes.
- Fix rendering of multiple
rasterlayers from a singleraster-arraysource. - Fix restoration of maps with background patterns, heatmap, image, video, or raster sources after WebGL context loss.
- Fix memory spike when calling
setDataon large datasets.
v3.14.0-beta.2
Bug fixes 🐞
- Fix rendering of multiple
rasterlayers from a singleraster-arraysource. - Fix restoration of maps with background patterns, heatmap, image, video, or raster sources after WebGL context loss.
v3.14.0-beta.1
Breaking changes ⚠️
- Imported styles will use the
glyphsURL template from the root style instead of their own.
Features and improvements ✨
- Add a
splitexpression to divide a string into an array of substrings based on a specified delimiter. - Improve memory usage for GeoJSON sources.
Bug fixes 🐞
- Fix an issue with querying rendered features during the globe-to-Mercator transition.
- Fix resources cleanup when removing a map with a terrain or/and vector icons.
- Fix an issue where a single primary image was not rendered correctly with
icon-image-cross-fade. - Fix an edge case involving the mixing of vertical and horizontal writing modes.
v3.13.0
Breaking changes ⚠️
interpolateexpression will interpolate between non-alpha-premultiplied colors. The change might affectraster-particle-color,line-gradient, andheatmap-color.rgbexpression will return non-premultiplied-alpha color.
Features and improvements ✨
- Add the
["worldview"]expression, which returns the currentworldviewof the map. - Add
model-translationsupport for batched model layers. - Improve indoor level interaction.
- Add support of gradient transforms in the fill style of vector icons.
Bug fixes 🐞
- Fix querying and styling issues with multiple model layers referencing the same source.
- Fix
mapbox-gl-rtl-textv0.3.0 plugin not loading in certain configurations. - Fix icons with
text-variable-anchordisappearing. - Fix minor distortions on vector icons in some cases.
- Fix zooming over terrain with negative altitude values.
- Fix interactions to not throw on
mouseleavewithoutmouseenter. - Fix shadow rendering issues on underground structures.
- Fix striping artifacts when rendering shadows on some GPU configurations.
- Fix errors when viewing a style with filtered model layers.
- Fix parsing of
color-use-themeproperty of 3D lights. - Fix feature-dependent
configexpressions (h/t @brncsk) #13453. - Fix reset of the indoor floorplan selection after moving the camera.
- Fix excessive rerendering of the map after
setStylewith the same URL of an import. - Fix source reloading during mercator-globe transition with terrain.
- Fix color of semi-transparent vector icons.
Workflow 🛠️
- Switched from CircleCI to GitHub Actions for continuous integration tests.