Skip to content

Fix #11646 baselayer selector doesn't adjust to the map after Save#11884

Merged
allyoucanmap merged 2 commits intogeosolutions-it:masterfrom
subashtiwari1010:fix/background-selector-11646
Jan 23, 2026
Merged

Fix #11646 baselayer selector doesn't adjust to the map after Save#11884
allyoucanmap merged 2 commits intogeosolutions-it:masterfrom
subashtiwari1010:fix/background-selector-11646

Conversation

@subashtiwari1010
Copy link
Copy Markdown
Contributor

Description

This PR fixes the issue of position of the baselayer selector on the map after editing the annotation and saving.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix

Issue

What is the current behavior?
The baselayer selector remains in the same position without adapting to the map's resizing.
#11646

What is the new behavior?
The baselayer selector reposition itself in bottom-left with a small margin.

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@subashtiwari1010 subashtiwari1010 added this to the 2025.02.02 milestone Jan 16, 2026
@subashtiwari1010 subashtiwari1010 linked an issue Jan 16, 2026 that may be closed by this pull request
1 task
@subashtiwari1010 subashtiwari1010 marked this pull request as ready for review January 16, 2026 11:04
@allyoucanmap allyoucanmap requested a review from anup39 January 20, 2026 17:24
@allyoucanmap allyoucanmap assigned anup39 and unassigned allyoucanmap Jan 20, 2026
@allyoucanmap allyoucanmap removed their request for review January 20, 2026 17:24
* This ensures annotations.editing is reset to fix layout calculation issues
*/
export const closeAnnotationsOnMapInfoLoadedEpic = (action$, { getState }) =>
action$.ofType(MAP_INFO_LOADED)
Copy link
Copy Markdown
Member

@anup39 anup39 Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@subashtiwari1010 I think MAP_SAVED is the correct action to listen. However MAP_INFO_LOADED also works. Just wanted to know which is better in this case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, as the refresh of the map data is occuring due to the MAP_INFO_LOADED, so we need to listen to that action so no further issues arises. As, all the closing of the annotation panel and calculation of the map layout needs to be done during that time.

@allyoucanmap allyoucanmap merged commit e581d24 into geosolutions-it:master Jan 23, 2026
13 checks passed
@allyoucanmap
Copy link
Copy Markdown
Contributor

@ElenaGallo please test this fix on dev and let us know if we can backport, thanks

@ElenaGallo
Copy link
Copy Markdown
Contributor

Test passed, @anup39 please backport. Thanks

@offtherailz
Copy link
Copy Markdown
Member

Successfully created backport PR for 2025.02.xx:

tdipisa pushed a commit that referenced this pull request Feb 3, 2026
…11884) (#11933)

(cherry picked from commit e581d24)

Co-authored-by: Sovas Tiwari <40485930+subashtiwari1010@users.noreply.github.com>
allyoucanmap pushed a commit that referenced this pull request Mar 13, 2026
…11884) (#11933)

(cherry picked from commit e581d24)

Co-authored-by: Sovas Tiwari <40485930+subashtiwari1010@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Baselayer selector doesn't adjust to the map after Save

6 participants