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

Fix/1547 bookmarks sublayers not displayed #1552

Closed
wants to merge 10 commits into from

Conversation

linusfj
Copy link
Member

@linusfj linusfj commented Nov 18, 2024

Closes #1547.

linusfj added 10 commits October 4, 2024 15:16
This commit introduces the ability to store and restore the visibility of sublayers (group layers) within bookmarks. Previously, only the main layers were tracked when a user created a bookmark, which meant any sublayer selections would be lost upon restoring the map state. This enhancement ensures that sublayers, particularly those in group layers, are saved as part of the bookmark and can be restored properly when the user revisits the bookmark.
This commit ensures that previously stored bookmarks, which do not have the 'gl' (group layers) parameter, can still be loaded without causing errors.
This commit fixes an issue in the Bookmarks plugin where sublayers from group layers were not correctly shown as toggled in the LayerSwitcher after loading a bookmark. While the sublayers were visible on the map, their checkboxes remained unchecked.

The solution synchronizes the visibility state of sublayers with the LayerSwitcher, ensuring the checkboxes accurately reflect the map's state when a bookmark is loaded.
Resolved an issue where sublayers were toggled on app start when they shouldn't have been.
This commit fixes an issue where the v2 API was using POST instead of PUT for saving documents. The `DocumentHandler` in `admin` was sending POST requests for all versions, which worked with v1 but failed with v2 endpoints.

The solution updates the API to handle both versions correctly while maintaining backwards compatibility, ensuring documents can be saved regardless of which API version is used.
This commit resolves an error that occurred when saving documents with the NodeJS backend. The backend was trying to parse data that was already in the correct format, causing saves to fail with a 500 error.
Fixed an issue where creating a bookmark for an entire group layer did not toggle sublayers correctly when the bookmark was loaded.
@Hallbergs
Copy link
Member

I see that there are some changes in the LayerSwitcher included. Have you discussed this with with Jakob who is working on the new LayerSwitcher?

@Hallbergs
Copy link
Member

Closing due to #1568

@Hallbergs Hallbergs closed this Nov 28, 2024
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

Successfully merging this pull request may close these issues.

2 participants