Skip to content

PB-322: Avoid reloading external layer upon browser history navigation#669

Merged
ltshb merged 1 commit intodevelopfrom
bug-external-layer
Mar 4, 2024
Merged

PB-322: Avoid reloading external layer upon browser history navigation#669
ltshb merged 1 commit intodevelopfrom
bug-external-layer

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Feb 29, 2024

When changing the config (opacity, visibility) of an external layer (KML, GPX,
WMS or WMTS) and then use the browser history navigation to revert the changes,
it triggered a reload of the layer and set its name back to the default until
the layer has been reloaded.

We can simply avoid this by updating the current layer object instead of
creating a new one.

Test link

@ltshb ltshb requested a review from ltkum February 29, 2024 05:38
@github-actions github-actions bot added the bug label Feb 29, 2024
@ltshb ltshb requested a review from ismailsunni February 29, 2024 05:38
@cypress
Copy link

cypress bot commented Feb 29, 2024

Passing run #840 ↗︎

0 167 22 0 Flakiness 0

Details:

PB-322: Avoid reloading external layer upon browser history navigation
Project: web-mapviewer Commit: 40cc12558c
Status: Passed Duration: 05:30 💡
Started: Mar 4, 2024 7:22 AM Ended: Mar 4, 2024 7:28 AM

Review all test suite changes for PR #669 ↗︎

@ltshb ltshb force-pushed the bug-external-layer branch 2 times, most recently from 8c761cb to 2bfc06e Compare March 1, 2024 13:18
When changing the config (opacity, visibility) of an external layer (KML, GPX,
WMS or WMTS) and then use the browser history navigation to revert the changes,
it triggered a reload of the layer and set its name back to the default until
the layer has been reloaded.

We can simply avoid this by updating the current layer object instead of
creating a new one.
@ltshb ltshb force-pushed the bug-external-layer branch from 2bfc06e to 40cc125 Compare March 4, 2024 07:19
@ltshb ltshb merged commit 2112b25 into develop Mar 4, 2024
@ltshb ltshb deleted the bug-external-layer branch March 4, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants