Releases: mapbox/mapbox-gl-js
Releases · mapbox/mapbox-gl-js
v3.9.4
v3.9.3
v3.9.2
v3.9.1
- Fix an error when using background patterns on styles with vector icons enabled.
- Fix
queryRenderedFeaturesnot working on styles with custom layers. - When using
queryRenderedFeaturesandquerySourceFeatureswithfeatureset, fixfilteroption to apply tofeaturesetselectors rather than original properties, and addfeatureNamespacevalidation. - Fix
queryRenderedFeaturesmissingsource,sourceLayerandlayerproperties in resulting features where they should be present. - Fix small rendering artifacts on line corners when using patterns with
line-join: none.
v3.9.0
Breaking changes ⚠️
- Rename
featuresetproperty totargetinaddInteractionandqueryRenderedFeaturesoptions.
Features and improvements ✨
- Add experimental vector icons support.
- Add experimental precipitation support through
snowandrainstyle properties. - Add experimental features for interactive indoor maps.
- Add
to-hslaexpression. - Add
*-use-themeproperty to override the color theme for specific layers. - Add support for
color-themeoverrides in imports. - Add per-feature
mouseenter,mouseover,mouseleave, andmouseoutevents foraddInteraction. - Enable mixing
featuresetsandlayersin theMap#queryRenderedFeatures. - Improve landmark rendering performance.
- The
cliplayer is now stable and no longer marked experimental.
Bug fixes 🐞
- Fix crash on devices with PowerVR GPUs.
- Fix dark shade of fill-extrusion buildings caused by specific light directions.
- Fix double shadowing on lines at ground level.
- Fix shadow acne from 3D structures close to the ground.
- Fix update of state-dependent features during brightness changes.
- Fix an edge case with fill extrusions around tile borders not being updated correctly on terrain load.
- Fix a race condition where using
line-z-offsetwould sometimes break layer rendering order.
v3.9.0-beta.1
Breaking changes ⚠️
- Rename
featuresetproperty totargetinaddInteractionandqueryRenderedFeturesoptions.
Features and improvements ✨
- Add experimental features for interactive indoor maps.
- Add experimental vector icons support.
- Add experimental precipitation support through
snowandrainstyle properties. - Add
to-hslaexpression. - Add
*-use-themeproperty to override the color theme for specific layers. - Add support for
color-themeoverrides in imports. - Add per-feature
mouseenter,mouseover,mouseleave, andmouseoutevents foraddInteraction. - Enable mixing
featuresetsandlayersin theMap#queryRenderedFeatures. - Improve landmark rendering performance.
Bug fixes 🐞
- Fix crash on devices with PowerVR GPUs.
- Fix dark shade of fill-extrusion buildings caused by specific light directions.
- Fix double shadowing on lines at ground level.
- Fix shadow acne from 3D structures close to the ground.
- Fix update of state-dependent features during brightness changes.
v3.8.0
Features and improvements ✨
- Add experimental support for style-defined
featuresets, an upcoming way to query features in Mapbox Standard and other fragment-based styles. - Add experimental
MapaddInteraction/removeInteractionmethods that make it easier to manage map interactions like clicking and hovering over features. - Add experimental support for elevated lines with
line-cross-slopeandline-elevation-referenceproperties. - Add experimental
scaleFactormap option andsetScaleFactormethod to increase map label size (useful for improving accessibility or adjusting text size for different devices). - Add support for using
line-progressexpression in non-data-driven line properties. - Add experimental
fill-extrusion-height-alignmentandfill-extrusion-base-alignmentproperties to control fill extrusion top/bottom alignment. - Improve performance of dynamic brightness changes.
- Minor optimizations to reduce load time.
Bug fixes 🐞
- Fix localization when setting a worldview on the Mapbox Standard style.
- Fix raster array rendering on some Android devices.
- Fix an issue where fill-extrusion buildings would disappear when zooming out.
- Fix line joins for thick semi-transparent or blurred lines.
- Improve appearance of line corners with densely placed vertices.
- Fix anti-alising aftifacts on blurred lines.
- Fix call stack overflow caused by repeated
addImportcalls. - Fix failures when handling non-renderable characters.
- Fix rendering of Osage script.
- Fix certain edge cases when using config expression in filter properties.
- Fix patterned fill extrusions being visible with zero opacity alpha.
- Fix data-driven
symbol-z-offsetnot working properly. - Fix fill extrusions on terrain producing WebGL warnings in some cases.
- Fix
line-emissive-strengthnot being applied to patterned lines.
v3.8.0-beta.1
Features and improvements ✨
- Minor optimizations to reduce load time.
Bug fixes 🐞
- Fix raster array rendering on some Android devices.
- Fix an issue where fill-extrusion buildings would disappear when zooming out.
- Fix line joins for thick semi-transparent or blurred lines.
- Improve appearance of line corners with densely placed vertices.
- Fix anti-alising aftifacts on blurred lines.
- Fix call stack overflow caused by repeated
addImportcalls. - Fix failures when handling non-renderable characters.
- Fix the Osage script rendering.
v3.7.0
Features and improvements ✨
- Add
background-pitch-alignmentproperty of thebackgroundlayer, which is set tomapby default but can now be set toviewport. Useful for highlighting individual features by dimming the rest of the map with a semitransparent background. - Add new control positions (
top,right,bottom, andleft) (h/t @Ethan-Guttman). - Add
retainPaddingoption for camera movement methods, which can be set tofalsefor pre-v3.4 padding behavior. - Add
configexpression support in layer filter. - Add symbol elevation properties:
symbol-z-offsetandsymbol-elevation-reference. - Add the
fill-z-offsetproperty for fill layers. - Improve
Map#fitBoundsfor the alternative projections. - Improve terrain hillshade lighting anchored to viewport.
- Improve shadow casting from 3D models.
- Improve error messages for invalid expressions.
- Skip landmarks rendering when the camera is inside them.
- Improve type checking for the
Map#setPaintPropertyandMap#setLayoutPropertymethods. - Allow the
stringevent type in Map event handlers. - Expose
RequestTransformFunction,ResourceType, andRequestParameterstypes. - Improve texture memory footprint on some platforms.
Bug fixes 🐞
- Fix feature filtering when using 3D lights.
- Fix pattern rendering issues on some devices at high zoom levels.
- Fix
fill-extrusion-line-widthrendering for large polygons - Fix symbol placement ordering when
symbol-z-orderis set toauto. - Fix the issue where
minzoomandmaxzoomproperties were ignored bycliplayers. - Fix handling previously hidden models in
cliplayers. - Fix directional light
cast-shadowsproperty type. - Fix an edge case that could produce
setStencilMode-related error in the console with the dev build. - Fix an issue where some fill extrusions could temporarily disappear when zooming quickly in certain areas.
- Fix an edge case that could cause flickering on a far plane on high zooms.
v3.7.0-beta.1
Features and improvements ✨
- Add
configexpression support in layer filter. - Add symbol elevation properties:
symbol-z-offsetandsymbol-elevation-reference. - Add the
fill-z-offsetproperty for fill layers. - Improve
Map#fitBoundsfor the alternative projections. - Improve terrain hillshade lighting anchored to viewport.
- Improve shadow casting from 3D models.
- Improve error messages for invalid expressions.
- Skip landmarks rendering when the camera is inside them.
- Improve type checking for the
Map#setPaintPropertyandMap#setLayoutPropertymethods. - Allow the
stringevent type in Map event handlers. - Expose
RequestTransformFunction,ResourceType, andRequestParameterstypes.
Bug fixes 🐞
- Fix feature filtering when using 3D lights.
- Fix pattern rendering issues on some devices at high zoom levels.
- Fix
fill-extrusion-line-widthrendering for large polygons - Fix symbol placement ordering when
symbol-z-orderis set toauto. - Fix the issue where
minzoomandmaxzoomproperties were ignored bycliplayers. - Fix handling previously hidden models in
cliplayers. - Fix directional light
cast-shadowsproperty type.