diff --git a/changelog/v10.6.1.md b/changelog/v10.6.1.md new file mode 100644 index 00000000000..7316c78cdeb --- /dev/null +++ b/changelog/v10.6.1.md @@ -0,0 +1,14 @@ +# 10.6.1 + +This is a bufix release which improves performance of `map.getFeaturesAtPixel` and `map.forEachFeatureAtPixel()`. See the [10.6.0 release notes](./v10.6.0.md) for a complete list of changes since the previous release. + +For upgrade notes + +#### List of all changes + +See below for a complete list of features and fixes. + + * fix type hint for getClosestFeatureToCoordinate() (by @knrdl in https://github.com/openlayers/openlayers/pull/16916) + * Remove willReadFrequently hint createCanvasContext2D when creating hitDetectionContext_ (by @natalvc in https://github.com/openlayers/openlayers/pull/16919) + * Updates for the 10.6.0 release (by @openlayers in https://github.com/openlayers/openlayers/pull/16914) + diff --git a/package-lock.json b/package-lock.json index 2c45b37ea76..314ac52746c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ol", - "version": "10.6.1-dev", + "version": "10.6.2-dev", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ol", - "version": "10.6.1-dev", + "version": "10.6.2-dev", "license": "BSD-2-Clause", "dependencies": { "@types/rbush": "4.0.0", diff --git a/package.json b/package.json index a5407f30b11..12f1808386b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ol", - "version": "10.6.1-dev", + "version": "10.6.2-dev", "description": "OpenLayers mapping library", "keywords": [ "map", diff --git a/src/ol/source/Vector.js b/src/ol/source/Vector.js index 1eb2aa7bf82..35c5e1cbe26 100644 --- a/src/ol/source/Vector.js +++ b/src/ol/source/Vector.js @@ -789,7 +789,7 @@ class VectorSource extends Source { * @param {function(FeatureType):boolean} [filter] Feature filter function. * The filter function will receive one argument, the {@link module:ol/Feature~Feature feature} * and it should return a boolean value. By default, no filtering is made. - * @return {FeatureType} Closest feature. + * @return {FeatureType|null} Closest feature (or `null` if none found). * @api */ getClosestFeatureToCoordinate(coordinate, filter) {