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

TOC - Open on map initialization options does not work as expected #10371

Closed
1 task done
ElenaGallo opened this issue May 29, 2024 · 2 comments · Fixed by #10387 or #10393
Closed
1 task done

TOC - Open on map initialization options does not work as expected #10371

ElenaGallo opened this issue May 29, 2024 · 2 comments · Fixed by #10387 or #10393

Comments

@ElenaGallo
Copy link
Contributor

ElenaGallo commented May 29, 2024

Description

By enabling the option and saving the map, the toc does not remain open the first time.

How to reproduce

  • See the video below
toc.mp4

Expected Result

The toc is open after saving

Current Result

The toc is close after saving

  • Not browser related
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

See also #10375

@tdipisa
Copy link
Member

tdipisa commented May 29, 2024

@ElenaGallo @dsuren1 I don't think the behavior in the video above is the real issue. Looking at my personal map context here, it seems it is working only when you open the map from home and the TOC was open the last time you have closed the session on that map: if you, for example, close the TOC, then close the map and finally you reopen the map, it doesn't work. That's what I've seen.

@dsuren1
Copy link
Contributor

dsuren1 commented May 30, 2024

@tdipisa
The plugins is sometimes not ready (context hasn't finished loading plugin yet) when map config is loaded to update TOC state which in turn results in TOC panel to remain closed. But sometimes the plugins is ready resulting in two different behavior when loading context

allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this issue May 30, 2024
@ElenaGallo ElenaGallo self-assigned this May 31, 2024
allyoucanmap added a commit to allyoucanmap/MapStore2 that referenced this issue May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment