Skip to content

Filter queryable layers to not include duplicates or inactive layers without "imageFeatureInfoMode": "always"#2263

Open
MattiasSp wants to merge 1 commit intoorigo-map:masterfrom
haninge-geodata:don't-query-duplicate-or-inactive-layers
Open

Filter queryable layers to not include duplicates or inactive layers without "imageFeatureInfoMode": "always"#2263
MattiasSp wants to merge 1 commit intoorigo-map:masterfrom
haninge-geodata:don't-query-duplicate-or-inactive-layers

Conversation

@MattiasSp
Copy link
Contributor

@MattiasSp MattiasSp commented Dec 2, 2025

Fixes #2130.

Filters the array of layers to query to only include the first instance of each layer (or featureinfoLayer) to avoid multiple queries to the same layers (which toggles selection on and off).

Also filters queryableLayers so that only visible and queryable layers, or layers with imageFeatureInfoMode: 'always' are included, mostly for making it more clear during execution what layers are actually going to be queried. The code following that section effectively gets to the same result so this change is not supposed to alter the current behaviour.

@Flodkvist
Copy link
Contributor

Was the initial issue hard to reproduce?
Can you supply information to assist a code review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Nothing happens when clicking two layers with the same featureinfoLayer set

2 participants