Skip to content

[pull] main from openlayers:main #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions changelog/v10.6.1.md
Original file line number Diff line number Diff line change
@@ -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)

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ol",
"version": "10.6.1-dev",
"version": "10.6.2-dev",
"description": "OpenLayers mapping library",
"keywords": [
"map",
Expand Down
2 changes: 1 addition & 1 deletion src/ol/source/Vector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading