Sourced from ol's releases.
v10.11.0
10.11.0
The 10.11 release improves styling, raster data and OGC service support, and makes the library leaner to load. The highlights are
- Canvas styles now evaluate the
colorandarrayoperators, andinterpolatemixes colors in sRGB on both the Canvas and WebGL renderers; a newinterpolate-hcloperator keeps the perceptual gradientol/source/Rastergains basic data tile support, and the GeoZarr source can visualize generic n-D datacubes and acceptsstoreOptionsfor headers and credentials- WMTS sources no longer derive their extent from the tile matrices, so layers that cover a wider area at low zoom levels are no longer cut off
- Tiles that the current view no longer needs are dropped from the queue, and the WebGL text overlay worker is loaded on demand
- The
VectorImageLayergets crisp rendering on rotated views, with rotated text and point symbols- New
wrapXoption forgetPixelFromCoordinateandgetCoordinateFromPixel, andprojectionoptions for the WKT format- Fixes for RTL text along lines, nested WFS 2.0 feature collections, empty GeoJSON coordinate arrays, and MouseWheelZoom target cleanup
Upgrade notes
Fixed GeoJSON parsing of geometries with empty coordinate arrays
Previously, a GeoJSON geometry with an empty coordinates array (e.g.
{"type": "Point", "coordinates": []}) produced a geometry with an empty coordinates array. We have now changed this to match the GeoJSON spec's recommendation to treat such geometries (exceptGeometryCollection) asnullgeometries. This change should not affect application code, unless it had special handling for geometries with empty coordinates arrays.Fixed:
interpolatemixed colors differently on the Canvas and WebGL renderersThe
['interpolate', ...]operator interpolated colors in the Hue-Chroma-Luminance space on the Canvas renderer, but component-wise in sRGB on the WebGL renderer. The same style produced different gradients depending on which renderer drew it, and neither behaviour was documented. Both now interpolate in sRGB.Gradients built with
interpolateover colors will look slightly different on the Canvas renderer. To keep the previous appearance, use the newinterpolate-hcloperator:// Before const style = { 'fill-color': ['interpolate', ['linear'], ['get', 'value'], 0, 'red', 1, 'green'], };// After - to keep the perceptual gradient const style = { 'fill-color': ['interpolate-hcl', ['linear'], ['get', 'value'], 0, 'red', 1, 'green'], };
interpolate-hclis only supported by the Canvas renderer for now.With the
['interpolate', ...]operator, channels now keep their fractional part, so operations applied on top of an interpolated color are more accurate. Code reading back a color from an evaluated style may now see a fractional channel.The WMTS tile grid extent is no longer calculated from the tile matrices
... (truncated)
88fc445
Updates for the 10.11.0 release66e841c
Merge pull request #17606
from ahocevar/cog-examples-sourcefc449f3
Merge pull request #17646
from zarathustracode/wkt-projection-options90cbd4a
Merge pull request #17653
from openlayers/dependabot/npm_and_yarn/development...9f1b626
Merge pull request #17655
from openlayers/dependabot/npm_and_yarn/production-...0c9e542
Merge pull request #17656
from openlayers/dependabot/github_actions/actions-7...c188334
Merge pull request #17650
from Egge-Jan/custom-controls-north-arrow7d43f53
chore(deps): bump the actions group across 1 directory with 2
updates5a9ab43
chore(deps-dev): bump the development-security group across 1 directory
with ...27dfb99
chore(deps): bump earcut