Skip to content

Commit

Permalink
Changes for 12.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Sep 15, 2023
1 parent 729fdb5 commit 3425b09
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# Changelog

## 12.0.0

### Backwards incompatible changes

* The `transformRequest` hook is now called for every single `Tiles` 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()` or `source.getUrls()`. Now they use a `tileLoadFunction` configured by ol-mapbox-style instead.
* Generated OpenLayers Vector sources are now always configured with a `loader` by ol-mapbox-style. The `getUrl()` method will return the url without the `transformRequest` transform. When the url is templated (`{bbox-...}`), `getUrl()` will return `undefined`.

### Other changes

* The `transformRequest` hook now also accepts a url string as return value. When a `Request` is returned, it will be fully respected - not just the request's `url`.

## 11.0.3

* Moree ol versions included in peer dependency version range
* More ol versions included in peer dependency version range

## 11.0.2

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ol-mapbox-style",
"version": "11.0.3",
"version": "12.0.0",
"description": "Create OpenLayers maps from Mapbox Style objects",
"type": "module",
"browser": "dist/index.js",
Expand Down

0 comments on commit 3425b09

Please sign in to comment.