npm / ol-mapbox-style
ol-mapbox-style
What changed in ol-mapbox-style 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
14 new APIs and options2 performance6 behavior and defaults9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initol-mapbox-style 1331 changes
New APIs and options 14
Use PatternDescriptor instead of patterns as color for fill-pattern, enabling rendering techniques beyond Canvas 2D.
Adds support for the raster-resampling raster layer property.
New hillshading options are supported, allowing developers to configure hillshading.
The line-offset paint property is supported.
Zoom exaggeration is added for DEM.
Supports retrieving defaults from the style's schema root properties.
Adds support for the hsl expression from the latest Mapbox style spec.
Adds support for the hsla expression from the latest Mapbox style spec.
Adds support for the to-hsla expression from the latest Mapbox style spec.
Supports data-driven visibility from the latest Mapbox style spec.
Adds support for the raster-hue-rotate operation.
Adds support for the raster-opacity operation.
Adds support for the raster-saturation operation.
ol-mapbox-style now has basic support for running in web workers.
Performance 2
Optimized style spec data reduces build size.
Font-weight ranges prevent redundant font loading requests.
Behavior and default changes 6
applyStyle() now allows layers other than Vector or VectorTile.
Updated support for the latest style specification.
Text color and halo are isolated from each other.
Outlines for fill-extrusion layers darken depending on fill-extrusion-height.
Hillshade appearance is adjusted to better match MapLibre.
Supports data-driven text-font array entries from the latest Mapbox style spec.
Fixes and other changes 9
Avoids losing patterns after SDFing them.
Cached icons now consider declutterMode, affecting how they are decluttered.
Fixed icon-rotate behavior for icons along lines.
The function/filter cache is invalidated when a layer is removed or added with addMapboxLayer, preventing stale cached values after layer changes.
The library no longer fails when used with OpenLayers versions that do not have Stroke#setOffset().
Raster contrast and alpha handling are fixed.
Improves robustness against failures caused by unsupported features.
Fixes background layer source reuse that could break vector layers.
Fixes hillshade colors.