The 6.13 release brings several exciting new features and improvements:
A new layer.getData() method to get pixel data for a single layer (see details below).
Support for rich text labels in ol/style/Text, to use different font styles and fonts in a single label.
The useGeograpic() and setUserProjection() functions in the ol/proj module are now part of the official API. These functions make it easier to work with geographic coordinates or local projections.
Improvements for WebGL Tile and Points layers.
Performance improvements on ol/Feature, to avoid event creation when there are no listeners.
Update of geotiff.js to v2, to fix some build issues that users reported.
Improvements to the auto-generated TypeScript types.
Details
New layer.getData() method
Raster layers (static images, image tiles, data tiles) have a new layer.getData(pixel) method that returns the pixel data at the provided location. The return value depends on the underlying source data type. For example, a GeoTIFF may return a Float32Array with one value per band, while a PNG rendered from a tile layer will return a Uint8ClampedArray of RGBA values.
If you were previously using the map.forEachLayerAtPixel() method, you should use the new layer.getData() method instead. The old method returns composite pixel values from multiple layers and is limited to RGBA values. The new method doesn't suffer from these shortcomings and is more performant.
Deprecated map.forEachLayerAtPixel() method
The map.forEachLayerAtPixel() method has been deprecated. It will be removed (or its behavior may change) in the next major release. Please use the layer.getData() method instead.
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 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 6.7.0 to 6.13.0.
Release notes
Sourced from ol's releases.
... (truncated)
Commits
7bf014f
Updates for the 6.13.0 releaseb15318b
Merge pull request #13418 from ahocevar/ol-mapbox-style-rich-text49b5ad6
Update ol-mapbox-style for rich text labels support8672e7e
Merge pull request #13417 from ahocevar/geotiff-resolution-tolerancea1aff21
Merge pull request #13415 from mike-000/graticule7b880b2
Increase GeoTIFF resolutions tolerance69f8a82
Check for resolution change and fix unrotated size28c1874
Merge pull request #13410 from ahocevar/rich-text-labels18f06b8
Rich text labels96a90fb
Merge pull request #13402 from openlayers/dependabot/npm_and_yarn/express-4.17.3Dependabot 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 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)