The 10.0 release brings several significant improvements, including a new base source for image tile sources with improved performance and simplified code. Flat styles handling has been reworked, removing the need to specify type hints among other internal improvements. In the WebGL renderer, a memory allocation issue has been fixed. For better developer experience, we improved generic types and fixed some issues with types, stabilizing the back and forth on generics in v9.x.
Breaking changes are very minor, so we recommend upgrading to v10.x for all v9.x users.
Backwards incompatible changes
ol/source/VectorTile: getFeaturesInExtent() method moved to ol/layer/VectorTile
The getFeaturesInExtent() method of ol/source/VectorTile has been moved to ol/layer/VectorTile. The signature and behavior have not changed, so all that needs to be done is change code from e.g.
layer.getSource().getFeaturesInExtent(extent);
to
layer.getFeaturesInExtent(extent);
Flat styles: Removal of Type hints in 'get' expressions
For the Canvas renderer, additional arguments to the 'get' call expression now mean access to nested properties or array items. The expression system has been improved so type hints are no longer needed. If you were previously using a type hint in a get expression, you have to change the expression from e.g.
['get', 'foo', 'number[]']
to
['get', 'foo']
Other changes
Removal of the opaque option from all Tile sources
The opaque option was previously used to hint the renderer to perform some optimizations on layers known to be fully opaque. This is no longer needed, and the option has been removed.
List of all changes
See below for a complete list of features and fixes.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps ol from 9.2.3 to 10.0.0.
Release notes
Sourced from ol's releases.
... (truncated)
Commits
6734ed6
Updates for the 10.0.0 release3453374
Merge pull request #16026 from Makio64/maind191503
remove outdated docb03d512
Merge pull request #16021 from NiclasSchmitz/main6a831cf
Fix cluster geometryFunction return typeb214192
Merge pull request #16012 from openlayers/dependabot/npm_and_yarn/rollup-4.19.02748213
Merge pull request #16015 from openlayers/dependabot/npm_and_yarn/mocha-10.7.0ca98579
Merge pull request #16014 from openlayers/dependabot/npm_and_yarn/octokit/res...bec3177
Merge pull request #16013 from openlayers/dependabot/npm_and_yarn/typescript-...d43769b
Bump mocha from 10.6.0 to 10.7.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show