Skip to content

PB-574: Fix layers parameter issue at startup#879

Merged
ltshb merged 2 commits intodevelopfrom
bug-PB-574-layers-param
Jun 6, 2024
Merged

PB-574: Fix layers parameter issue at startup#879
ltshb merged 2 commits intodevelopfrom
bug-PB-574-layers-param

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented Jun 5, 2024

External layers (kml, gpx, wmts, wms) at the bottom of the stack where replaced
by default topic layers during startup if the layers came from a legacy link.

This issue was due to a performance improvement that avoid to recreated layer
object if it was already present, but this performance improvement did not check
if the layer at index was the correct ID.

Test link

@ltshb ltshb requested a review from pakb June 5, 2024 06:35
@github-actions github-actions bot added the bug label Jun 5, 2024
@cypress
Copy link

cypress bot commented Jun 5, 2024

Passing run #2392 ↗︎

0 207 20 0 Flakiness 0

Details:

PB-574: Don't overwrite layer default opacity
Project: web-mapviewer Commit: f2ea5bb13e
Status: Passed Duration: 05:10 💡
Started: Jun 6, 2024 2:26 PM Ended: Jun 6, 2024 2:31 PM

Review all test suite changes for PR #879 ↗︎

ltshb added 2 commits June 6, 2024 16:22
External layers (kml, gpx, wmts, wms) at the bottom of the stack where replaced
by default topic layers during startup if the layers came from a legacy link.

This issue was due to a performance  improvement that avoid to recreated layer
object if it was already present, but this performance improvement did not check
if the layer at index was the correct ID.
Each layer might have a default opacity from the layer config therefore only
clone current layer config for external layers and kml (kml created by
the web-mapviewer are not considered as external).
@ltshb ltshb force-pushed the bug-PB-574-layers-param branch from 73b3680 to f2ea5bb Compare June 6, 2024 14:22
@ltshb ltshb merged commit b762511 into develop Jun 6, 2024
@ltshb ltshb deleted the bug-PB-574-layers-param branch June 6, 2024 18:07
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