v10.3.0
版本发布时间: 2024-11-30 19:30:19
openlayers/openlayers最新发布版本:v10.3.1(2024-12-06 23:34:09)
In addition to many important bug fixes, the 10.3 release adds several improvements to the recently introduced ImageTile
source, support for model transformations for the GeoTIFF
source, a new SentinelHub
source, built-in support for UTM coordinate transforms, smart caching of regular shape and icon styles, TypeScript improvements for the VectorImage
layer, and a new WebGLVectorLayer
.
Upgrade notes
The transform
function throws for unknown projections
Previously, the transform()
function from the ol/proj
module would apply the identity transform if either the source or the destination projections were unrecognized. Now this function will throw an error if it cannot perform the transform. You can check whether a projection is registered by calling the get()
function from ol/proj
- this function returns null
if the projection definition for a provided identifier is not known.
List of all changes
See below for a complete list of features and fixes.
- FrameState is never null for PostRenderFunction (by @M393 in https://github.com/openlayers/openlayers/pull/16415)
- Fix for #15296 bug (by @piotrintes in https://github.com/openlayers/openlayers/pull/16382)
- Properly encode URI components (by @tschaub in https://github.com/openlayers/openlayers/pull/16409)
- Introduce a WebGLVectorLayer class & change the style variables API (by @jahow in https://github.com/openlayers/openlayers/pull/16394)
- Use event.pixel instead of getEventPixel (by @MoonE in https://github.com/openlayers/openlayers/pull/16395)
- More representative z-index for the layer-vectortile-z-index test. (by @levelost in https://github.com/openlayers/openlayers/pull/16390)
- Make sure hitDetection is only applied on points (by @oterral in https://github.com/openlayers/openlayers/pull/16393)
- Fix incorrect zIndex sorting #16373 (by @levelost in https://github.com/openlayers/openlayers/pull/16386)
- Bring back the setDeclutter() method (by @ahocevar in https://github.com/openlayers/openlayers/pull/16383)
- Include
background
inol/layer/Tile
options (by @mike-000 in https://github.com/openlayers/openlayers/pull/16371) - Expire cache only when not loading tiles (by @ahocevar in https://github.com/openlayers/openlayers/pull/16365)
- Update deprecated applyStyle syntax in Vector tiles in EPSG:4326 example (by @mike-000 in https://github.com/openlayers/openlayers/pull/16350)
- Use Math.ceil() for regular shape canvas size (by @ahocevar in https://github.com/openlayers/openlayers/pull/16362)
- Add test when element is null (by @oterral in https://github.com/openlayers/openlayers/pull/16355)
- Do not append the element if it is null (by @oterral in https://github.com/openlayers/openlayers/pull/16354)
- Remove unnecessary async (by @tschaub in https://github.com/openlayers/openlayers/pull/16351)
- Use IconImageCache for regular shapes (by @ahocevar in https://github.com/openlayers/openlayers/pull/16349)
- Support for UTM transforms (by @tschaub in https://github.com/openlayers/openlayers/pull/16327)
- Fix type generics for VectorImageLayer (by @ahocevar in https://github.com/openlayers/openlayers/pull/16348)
- Add text-keep-upright to flat style attributes (by @leyan in https://github.com/openlayers/openlayers/pull/16315)
- Add template to RBush forEach (by @M393 in https://github.com/openlayers/openlayers/pull/16345)
- Example showing image tiles from a PMTiles archive (by @tschaub in https://github.com/openlayers/openlayers/pull/16335)
- Turn off transition in more rendering tests (by @mike-000 in https://github.com/openlayers/openlayers/pull/16333)
- Revert "Remove debug tile layer in rendering test" (by @mike-000 in https://github.com/openlayers/openlayers/pull/16332)
- Remove debug tile layer in rendering test (by @tschaub in https://github.com/openlayers/openlayers/pull/16329)
- Clear the LRU cache properly (by @ahocevar in https://github.com/openlayers/openlayers/pull/16328)
- Pass the transformed coordinates (by @tschaub in https://github.com/openlayers/openlayers/pull/16325)
- Turn off transition for rendering tests (by @tschaub in https://github.com/openlayers/openlayers/pull/16326)
- Fix vectortile get features (by @M393 in https://github.com/openlayers/openlayers/pull/16313)
- Add a keepUpright parameter to control text labels rotation (by @leyan in https://github.com/openlayers/openlayers/pull/16302)
- Correct annotation for render events (by @tschaub in https://github.com/openlayers/openlayers/pull/16301)
- Sentinel Hub source (by @tschaub in https://github.com/openlayers/openlayers/pull/15891)
- Improve the Modify interaction's API for programmatic actions (by @ahocevar in https://github.com/openlayers/openlayers/pull/16296)
- Set source projection from OGC TileMatrixSet crs (by @kudlav in https://github.com/openlayers/openlayers/pull/16293)
- Accept a CRS object with a URI string in tile matrix set (by @tschaub in https://github.com/openlayers/openlayers/pull/16291)
- Run browser tests without a sandbox in CI (by @tschaub in https://github.com/openlayers/openlayers/pull/16288)
- Execute postrender functions in worker (by @ahocevar in https://github.com/openlayers/openlayers/pull/16277)
- Let isVisible() return false for layers that are not yet rendered (by @ahocevar in https://github.com/openlayers/openlayers/pull/16260)
- Handle rotated, skewed or flipped GeoTIFF tile grids (by @mike-000 in https://github.com/openlayers/openlayers/pull/16227)
- Fix Flow layer rotation (by @kikuchan in https://github.com/openlayers/openlayers/pull/16251)
- Do not call postrender functions when there is no frameState (by @ahocevar in https://github.com/openlayers/openlayers/pull/16268)
- Fix #15484 regression (by @mike-000 in https://github.com/openlayers/openlayers/pull/16249)
- Use fflate instead of jszip (by @ahocevar in https://github.com/openlayers/openlayers/pull/16254)
- Update external scripts and use npm for some (by @MoonE in https://github.com/openlayers/openlayers/pull/16234)
- Make TileDebug a subclass of ImageTile instead of XYZ (by @mike-000 in https://github.com/openlayers/openlayers/pull/16245)
- Add setters for the
overlaps
option (by @ahocevar in https://github.com/openlayers/openlayers/pull/16243) - Reproject DataTiles using WebGL instead of 2d canvas. (by @sweepline in https://github.com/openlayers/openlayers/pull/15860)
- Update example to use turf via npm (by @MoonE in https://github.com/openlayers/openlayers/pull/16232)
- Fix ImageTile source
{-y}
placeholder handling (by @mike-000 in https://github.com/openlayers/openlayers/pull/16233) - Add
zDirection
option to ol/source/ImageTile (by @mike-000 in https://github.com/openlayers/openlayers/pull/16231) - Update URL and attributions of wmts-ign example (by @cvagner in https://github.com/openlayers/openlayers/pull/16230)
- Updates for the 10.2.1 release (by @openlayers in https://github.com/openlayers/openlayers/pull/16226)
Dependency Updates
- Bump rollup-plugin-external-globals from 0.12.1 to 0.13.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16398)
- Bump proj4 from 2.14.0 to 2.15.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16399)
- Bump marked from 15.0.1 to 15.0.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/16397)
- Bump typescript from 5.6.3 to 5.7.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/16400)
- Bump @types/mocha from 10.0.9 to 10.0.10 (by @openlayers in https://github.com/openlayers/openlayers/pull/16401)
- Bump puppeteer from 23.8.0 to 23.9.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16402)
- Bump @typescript-eslint/parser from 8.14.0 to 8.15.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16403)
- Bump rollup from 4.27.3 to 4.27.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/16404)
- Bump rollup from 4.25.0 to 4.27.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/16384)
- Bump marked from 15.0.0 to 15.0.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16375)
- Bump puppeteer from 23.7.1 to 23.8.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16377)
- Bump jsts from 2.11.3 to 2.12.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16378)
- Bump rollup-plugin-external-globals from 0.12.0 to 0.12.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16379)
- Bump @typescript-eslint/parser from 8.13.0 to 8.14.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16374)
- Bump puppeteer from 23.6.1 to 23.7.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16359)
- Bump @typescript-eslint/parser from 8.12.2 to 8.13.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16358)
- Bump marked from 14.1.3 to 15.0.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16357)
- Bump rollup from 4.24.4 to 4.25.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16356)
- Bump proj4 from 2.12.1 to 2.14.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16321)
- Bump rollup from 4.24.3 to 4.24.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/16337)
- Bump puppeteer from 23.6.0 to 23.6.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16338)
- Bump @typescript-eslint/parser from 8.11.0 to 8.12.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/16339)
- Bump webpack from 5.95.0 to 5.96.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16340)
- Bump mocha from 10.7.3 to 10.8.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/16341)
- Bump rollup from 4.24.0 to 4.24.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/16330)
- Bump @typescript-eslint/parser from 8.10.0 to 8.11.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16319)
- Bump jsdoc-plugin-typescript from 3.1.0 to 3.2.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16305)
- Bump @typescript-eslint/parser from 8.9.0 to 8.10.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16306)
- Bump marked from 14.1.2 to 14.1.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/16307)
- Bump @rollup/plugin-commonjs from 28.0.0 to 28.0.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16308)
- Bump puppeteer from 23.5.3 to 23.6.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16309)
- Bump jsdoc from 4.0.3 to 4.0.4 (by @openlayers in https://github.com/openlayers/openlayers/pull/16310)
- Bump typescript from 5.6.2 to 5.6.3 (by @openlayers in https://github.com/openlayers/openlayers/pull/16284)
- Bump @types/mocha from 10.0.8 to 10.0.9 (by @openlayers in https://github.com/openlayers/openlayers/pull/16281)
- Bump chroma-js from 3.1.1 to 3.1.2 (by @openlayers in https://github.com/openlayers/openlayers/pull/16283)
- Bump jsdoc-plugin-typescript from 3.0.0 to 3.1.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16285)
- Bump @typescript-eslint/parser from 8.8.0 to 8.9.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16290)
- Bump cookie, express and socket.io (by @openlayers in https://github.com/openlayers/openlayers/pull/16275)
- Bump rollup from 4.22.5 to 4.24.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16265)
- Bump @typescript-eslint/parser from 8.7.0 to 8.8.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16264)
- Bump puppeteer from 23.4.1 to 23.5.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16263)
- Bump jszip from 2.7.0 to 3.8.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16252)
- Bump @types/rbush from 3.0.3 to 4.0.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16239)
- Bump @typescript-eslint/parser from 8.6.0 to 8.7.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16237)
- Bump @rollup/plugin-node-resolve from 15.2.4 to 15.3.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16236)
- Bump @rollup/plugin-commonjs from 26.0.1 to 28.0.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16235)
- Bump puppeteer from 23.4.0 to 23.4.1 (by @openlayers in https://github.com/openlayers/openlayers/pull/16238)
- Bump rollup from 4.22.4 to 4.22.5 (by @openlayers in https://github.com/openlayers/openlayers/pull/16240)
- Bump webpack from 5.94.0 to 5.95.0 (by @openlayers in https://github.com/openlayers/openlayers/pull/16241)
1、 v10.3.0-package.zip 2.73MB
2、 v10.3.0-site.zip 17.49MB