## Description <!-- Add here a few sentences describing the bug. --> There are cases where the printing preview does not maintain correctly the state aligned to the TOC one. ## How to reproduce <!-- A list of steps to reproduce the bug --> - Open [this map context](https://dev-mapstore.geosolutionsgroup.com/mapstore/#/context/demo_context/46500) - Open the print tool - Look at the map preview *Expected Result* <!-- Describe here the expected result --> The map preview reports layers in map according to the TOC state. *Current Result* <!-- Describe here the current behavior --> There are layers visible in the map preview even if they or their group is disabled in TOC. This bug affects 2024.01 series. https://github.com/user-attachments/assets/612a03ca-9d18-4140-b1c3-020c53861698 - [x] Not browser related <details><summary> <b>Browser info</b> </summary> <!-- If browser related, please compile the following table --> <!-- If your browser is not in the list please add a new row to the table with the version --> (use this site: <a href="https://www.whatsmybrowser.org/">https://www.whatsmybrowser.org/</a> for non expert users) | Browser Affected | Version | |---|---| |Internet Explorer| | |Edge| | |Chrome| | |Firefox| | |Safari| | </details> ## Other useful information <!-- error stack trace, screenshot, videos, or link to repository code are welcome -->
Description
There are cases where the printing preview does not maintain correctly the state aligned to the TOC one.
How to reproduce
Expected Result
The map preview reports layers in map according to the TOC state.
Current Result
There are layers visible in the map preview even if they or their group is disabled in TOC. This bug affects 2024.01 series.
print_preview_bug.mp4
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information