Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer tree problem after refreshing #597

Open
nono22170 opened this issue Jan 21, 2025 · 1 comment
Open

Layer tree problem after refreshing #597

nono22170 opened this issue Jan 21, 2025 · 1 comment

Comments

@nono22170
Copy link

Hello,

I am a French apprentice currently working on QWC.
I think I found a bug when refreshing (F5) my web page after adding layers from the layer catalog.
Before refreshing :
Image
After refreshing :
Image

For my apprenticeship, I will be working on a solution for this issue over the next weeks.
I started to work on a solution to add a parameter in the URL. Thanks to this new parameter, when I load my page, it will fetch the WMS layers and get the layer tree again. For that, I modified themes.js in qwc2/reducers and LayerCatalogWidget.jsx in qwc2/components/widgets.

Maybe someone has another solution for this problem ?

Thank you

@manisandro
Copy link
Member

Hi

Yes this is a known limitation that the group hierarchy is lost when refreshing via F5 (as opposed to restoring from a full permalink). I'm open to solutions to also restore the group hierarchy from the URL, however I see this as a pretty complex problem to solve generally.

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

No branches or pull requests

2 participants