qgis / qwc2-demo-app

QWC2 demo application
Other
242 stars 154 forks source link

The identify region tool is not aware of scale based layer visibility #569

Open danceb opened 2 months ago

danceb commented 2 months ago

Map layers could not be visible within the map at a specific scale, as they have a scale based visibilty configured (italic label within the layer tree): grafik

Nevertheless the features of this layers are requested with the identify region tool within the map:

grafik

I think the tool should only consider features from layers, which are actually visible and the scale based visibility should be taken into account here as well.

manisandro commented 2 months ago

IdentifyUtils.getQueryLayers [1] should actually honour the scale based visibility. You might want to step through that method to see why it may be failing.

[1] https://github.com/qgis/qwc2/blob/master/utils/IdentifyUtils.js#L83