Description
When using the featureinfoLayer property on a layer, we might end up with the same layer being queried more than once.
Currently, if a layer is queried an even number of times, the features will be selected and then deselected again ending up with no selection. To the user, nothing at all seems to happen.
To Reproduce
- Configure a reference layer
reference_layer with "visible": false
- Configure two layers to be clicked,
layer1 and layer2, with "visible": true
- Set
"featureinfoLayer": "reference_layer" on layer1 and layer2.
- Open the map and click a feature
- Nothing happens
Expected behavior
If a layer's info is asked for by multiple visible layers, only one request and only one selection toggle should occur.
Desktop (please complete the following information):
- OS: Windows
- Browser Chrome
- Version 131