unstale

npm / ol-mapbox-style

ol-mapbox-style

What changed in ol-mapbox-style 7 to 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-28.

17 breaking20 new APIs and options4 performance9 behavior and defaults14 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

ol-mapbox-style 1341 changes

Breaking changes 4

  • A failed extent stays marked as loaded and is not retried automatically on every render; retry with source.refresh(), or source.removeLoadedExtent(extent) followed by source.changed().

    13.9.0release notes

  • Style objects without an id no longer receive a generated id that was used only as an internal cache key.

    13.9.0release notes

  • Maps loading the same style URL at the same time receive separate style objects, so changes to one map do not affect the other.

    13.9.0release notes

  • MVT features now store their tile source-layer in mvt:layer instead of layer, which may require changes to feature-info code or style-function customizations.

    13.0.0release notes

New APIs and options 14

  • Use PatternDescriptor instead of patterns as color for fill-pattern, enabling rendering techniques beyond Canvas 2D.

    13.7.0release notes

  • Adds support for the raster-resampling raster layer property.

    13.5.0release notes

  • New hillshading options are supported, allowing developers to configure hillshading.

    13.4.0release notes

  • The line-offset paint property is supported.

    13.4.0release notes

  • Zoom exaggeration is added for DEM.

    13.4.0release notes

  • Supports retrieving defaults from the style's schema root properties.

    13.3.0release notes

  • Adds support for the hsl expression from the latest Mapbox style spec.

    13.3.0release notes

  • Adds support for the hsla expression from the latest Mapbox style spec.

    13.3.0release notes

  • Adds support for the to-hsla expression from the latest Mapbox style spec.

    13.3.0release notes

  • Supports data-driven visibility from the latest Mapbox style spec.

    13.3.0release notes

  • Adds support for the raster-hue-rotate operation.

    13.2.0release notes

  • Adds support for the raster-opacity operation.

    13.2.0release notes

  • Adds support for the raster-saturation operation.

    13.2.0release notes

  • ol-mapbox-style now has basic support for running in web workers.

    13.1.1release notes

Performance 3

  • Layers and styles are released once no longer used, preventing them and their map from staying in memory after map.dispose().

    13.9.0release notes

  • Optimized style spec data reduces build size.

    13.5.0release notes

  • Font-weight ranges prevent redundant font loading requests.

    13.2.1release notesrelease notes

Behavior and default changes 6

  • applyStyle() now allows layers other than Vector or VectorTile.

    13.6.0release notes

  • Updated support for the latest style specification.

    13.4.3release notes

  • Text color and halo are isolated from each other.

    13.4.0release notes

  • Outlines for fill-extrusion layers darken depending on fill-extrusion-height.

    13.3.0release notes

  • Hillshade appearance is adjusted to better match MapLibre.

    13.3.0release notesrelease notes

  • Supports data-driven text-font array entries from the latest Mapbox style spec.

    13.3.0release notes

Fixes and other changes 14

  • Cached style values are no longer shared between style objects with the same id, preventing cross-map rendering and visibility changes.

    13.9.0release notes

  • Relative ol:webfonts URLs in style metadata are resolved against the style URL.

    13.9.0release notes

  • Retains support for fill-translate in styles.

    13.8.0release notes

  • Retains support for fill-translate-anchor in styles.

    13.8.0release notes

  • Avoids losing patterns after SDFing them.

    13.7.1release notes

  • Cached icons now consider declutterMode, affecting how they are decluttered.

    13.5.1release notes

  • Fixed icon-rotate behavior for icons along lines.

    13.4.3release notes

  • The function/filter cache is invalidated when a layer is removed or added with addMapboxLayer, preventing stale cached values after layer changes.

    13.4.2release notes

  • The library no longer fails when used with OpenLayers versions that do not have Stroke#setOffset().

    13.4.1release notes

  • Raster contrast and alpha handling are fixed.

    13.4.0release notes

  • Improves robustness against failures caused by unsupported features.

    13.3.0release notes

  • Fixes background layer source reuse that could break vector layers.

    13.2.1release notesrelease notes

  • Fixes hillshade colors.

    13.2.0release notes

  • Font detection and loading were improved to ensure that the correct fonts are downloaded.

    13.0.0release notes

ol-mapbox-style 125 changes

Breaking changes 3

  • For generated Vector sources, getUrl() returns the URL without the transformRequest transform, and returns undefined when the URL is templated with {bbox-...}.

    12.0.0release notes

  • Generated OpenLayers Tile and VectorTile sources now use a tileLoadFunction configured by ol-mapbox-style instead of template URLs from getUrl() or getUrls().

    12.0.0release notes

  • The hook is called for every individual Tiles request with the final URL, rather than once with the URL template.

    12.0.0release notes

Behavior and default changes 2

  • Generated OpenLayers Vector sources are now always configured with a loader by ol-mapbox-style.

    12.0.0release notes

  • The hook can return a URL string; returned Request objects are fully respected, not just for their URL.

    12.0.0release notes

ol-mapbox-style 112 changes

Breaking changes 2

  • A new MapboxVectorLayer export replaces ol/layer/MapboxVector from OpenLayers.

    11.0.0release notes

  • The package now contains untranspiled modern JavaScript; configure build tools to transpile it when targeting older browsers.

    11.0.0release notes

ol-mapbox-style 101 changes

Breaking changes 1

  • BBOX template replacements now include only the bounding box, not the projection’s SRS identifier. WFS source URLs and other URLs that need the SRS identifier must add it explicitly.

    10.0.0release notes

ol-mapbox-style 93 changes

Breaking changes 2

  • The x-value now moves right as the offset increases; remove any workaround for the previous direction.

    9.0.0release notes

  • ol-mapbox-style now requires OpenLayers 7.

    9.0.0release notes

New APIs and options 1

ol-mapbox-style 810 changes

Breaking changes 4

  • apply() is now an alias of the default export and returns a Promise<Map> instead of a Map.

    8.0.0release notes

  • Types are stricter because they reference OpenLayers types correctly instead of using any.

    8.0.0release notes

  • The umd bundle is now dist/olms.js; dist/index.js is the ejs bundle, and no other JavaScript files are provided in dist/.

    8.0.0release notes

  • Imports from the dist/ folder are no longer supported; import from the package instead.

    8.0.0release notes

New APIs and options 4

  • The options can include accessToken, making it easier to use maps and styles from Mapbox alongside support for mapbox:// URLs.

    8.0.0release notes

  • Support for mapbox:// URLs makes it easier to use maps and styles from Mapbox in combination with accessToken.

    8.0.0release notes

  • A set of resolutions can now be configured in options, making it easier to work with layers or maps in projections other than Web Mercator.

    8.0.0release notes

  • The options argument for apply(), applyStyle() and applyBackground() can include transformRequest to modify URLs and requests for styles, sprites, tiles and data.

    8.0.0release notes

Performance 1

  • The build is at least 80 kB smaller; removing accidental OpenLayers code from the umd bundle accounts for almost 400 kB of the reduction.

    8.0.0release notes

Behavior and default changes 1

  • applyStyle() can now create and populate the source of the provided layer.

    8.0.0release notes

ol-mapbox-style 72 changes

Breaking changes 1

New APIs and options 1

  • Adds support for rich text labels with OpenLayers v6.13+.

    7.0.0release notes