# What changed in ol-mapbox-style

> 31 changes in ol-mapbox-style 13 from its official release notes, upgrade guides and advisories: 14 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/ol-mapbox-style/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## ol-mapbox-style 13

### New APIs and options

- Use PatternDescriptor instead of patterns as color for fill-pattern, enabling rendering techniques beyond Canvas 2D. (13.7.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.7.0)
- Adds support for the raster-resampling raster layer property. (13.5.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.5.0)
- New hillshading options are supported, allowing developers to configure hillshading. (13.4.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0)
- The line-offset paint property is supported. (13.4.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0)
- Zoom exaggeration is added for DEM. (13.4.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0)
- Supports retrieving defaults from the style's schema root properties. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Adds support for the hsl expression from the latest Mapbox style spec. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Adds support for the hsla expression from the latest Mapbox style spec. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Adds support for the to-hsla expression from the latest Mapbox style spec. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Supports data-driven visibility from the latest Mapbox style spec. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Adds support for the raster-hue-rotate operation. (13.2.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.2.0)
- Adds support for the raster-opacity operation. (13.2.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.2.0)
- Adds support for the raster-saturation operation. (13.2.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.2.0)
- ol-mapbox-style now has basic support for running in web workers. (13.1.1) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.1.1)

### Performance

- Optimized style spec data reduces build size. (13.5.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.5.0)
- Font-weight ranges prevent redundant font loading requests. (13.2.1) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0), [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.2.1)

### Behavior and default changes

- applyStyle() now allows layers other than Vector or VectorTile. (13.6.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.6.0)
- Updated support for the latest style specification. (13.4.3) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.3)
- Text color and halo are isolated from each other. (13.4.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0)
- Outlines for fill-extrusion layers darken depending on fill-extrusion-height. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Hillshade appearance is adjusted to better match MapLibre. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0), [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Supports data-driven text-font array entries from the latest Mapbox style spec. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)

### Fixes and other changes

- Avoids losing patterns after SDFing them. (13.7.1) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.7.1)
- Cached icons now consider declutterMode, affecting how they are decluttered. (13.5.1) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.5.1)
- Fixed icon-rotate behavior for icons along lines. (13.4.3) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.3)
- The function/filter cache is invalidated when a layer is removed or added with addMapboxLayer, preventing stale cached values after layer changes. (13.4.2) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.2)
- The library no longer fails when used with OpenLayers versions that do not have Stroke#setOffset(). (13.4.1) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.1)
- Raster contrast and alpha handling are fixed. (13.4.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0)
- Improves robustness against failures caused by unsupported features. (13.3.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.3.0)
- Fixes background layer source reuse that could break vector layers. (13.2.1) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.4.0), [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.2.1)
- Fixes hillshade colors. (13.2.0) — [release notes](https://github.com/openlayers/ol-mapbox-style/releases/tag/v13.2.0)
