v12.0.0
Backwards incompatible changes
- The
transformRequest
hook is now called for every singleTiles
request with the final url, instead of just once with the url template. - Generated OpenLayers Tile and VectorTile sources previously used the template urls obtained by
source.getUrl()
orsource.getUrls()
. Now they use atileLoadFunction
configured by ol-mapbox-style instead. - Generated OpenLayers Vector sources are now always configured with a
loader
by ol-mapbox-style. ThegetUrl()
method will return the url without thetransformRequest
transform. When the url is templated ({bbox-...}
),getUrl()
will returnundefined
.
Other changes
- The
transformRequest
hook now also accepts a url string as return value. When aRequest
is returned, it will be fully respected - not just the request'surl
.
What's Changed
- Make transformRequest more useful by @ahocevar in #985
- Changes for v11.0.3 by @ahocevar in #978
- Bump typedoc-plugin-missing-exports from 2.0.1 to 2.1.0 by @dependabot in #979
- Bump typedoc-plugin-markdown from 3.15.4 to 3.16.0 by @dependabot in #980
- Bump @rollup/plugin-node-resolve from 15.2.0 to 15.2.1 by @dependabot in #983
- Bump eslint from 8.47.0 to 8.49.0 by @dependabot in #984
- Bump typescript from 5.1.6 to 5.2.2 by @dependabot in #982
Full Changelog: v11.0.3...v12.0.0