geosolutions-it / MapStore2

The solution to create and share maps, dashboards, geostories with 3D support on the web. And it is open-source too!
https://mapstore.geosolutionsgroup.com/
Other
513 stars 400 forks source link

Layer selectable even if the group it belongs to is turned off #10632

Open danabit opened 2 weeks ago

danabit commented 2 weeks ago

Description

There is a problem in the selection similar to the printing problem which was solved here: https://github.com/geosolutions-it/MapStore2/issues/10513

The same thing happens when you select on the map and the group is turned off but its nodes are turned on. I take your map at the link as an example: https://mapstore.geosolutionsgroup.com/mapstore/#/viewer/8613

If I turn off the “New York” group and select in an area where I know there is a State (but it is not visible because the group is turned off), the selection will still happen, even though the State of US layer is not visible. This situation did not occur before version 2024.01.

How to reproduce

Expected Result There should be no results in the identify panel (since the layer is not visible on the map)

Current Result The identify panel still shows results (even if the layer is not visible)

Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users) | Browser Affected | Version | |---|---| |Internet Explorer| | |Edge| | |Chrome| | |Firefox| | |Safari| |

Other useful information

https://github.com/user-attachments/assets/482e6f16-f0ff-437b-a4f4-cc40a0a28516

tdipisa commented 1 week ago

Thank you for reporting @danabit