Skip to content

PB-542 : take into account "config3d" layers config property#904

Merged
pakb merged 3 commits intodevelopfrom
bug_PB-542_proper_3d_layer_selection
Jun 12, 2024
Merged

PB-542 : take into account "config3d" layers config property#904
pakb merged 3 commits intodevelopfrom
bug_PB-542_proper_3d_layer_selection

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Jun 12, 2024

and improve how we parse WMS layer config, taking into account possible "wmsLayers" property

This means that the BG layer set in the URL stays the same while going 3D, and CesiumMap component looks up for 3D equivalent for any WMS/WMTS (background included) if they are defined.

This should fix the issue we had with ch.bazl.luftfahrthindernis in 3D, where the "Last updated" label was on each tile (3D can't load a single tile WMS, so there's a specific 3D config for this one, among others)

Test link

and parse wmsLayers property too for WMS layers, fallback to what we had previously set if none is set.
Some wmsLayers are array of strings, some are a single string and some aren't set.
@github-actions github-actions bot added the bug label Jun 12, 2024
@cypress
Copy link

cypress bot commented Jun 12, 2024

Passing run #2502 ↗︎

0 208 20 0 Flakiness 0

Details:

PB-542 : adapt test to new config3d approach
Project: web-mapviewer Commit: 0942e847a8
Status: Passed Duration: 06:34 💡
Started: Jun 12, 2024 8:48 AM Ended: Jun 12, 2024 8:55 AM

Review all test suite changes for PR #904 ↗︎

pakb added 2 commits June 12, 2024 10:44
removing any hard-coded logic that can be replaced with this config based approach.

BG layer in the URL/store will stay set to their 2D equivalent, Cesium component will do the look up for the 3D counterpart without changing the store (same thing for any other imagery layer)
@pakb pakb force-pushed the bug_PB-542_proper_3d_layer_selection branch from 041db1e to 0942e84 Compare June 12, 2024 08:44
@pakb pakb requested review from ismailsunni, ltkum and ltshb and removed request for ltkum and ltshb June 12, 2024 08:45
Copy link
Contributor

@ltshb ltshb left a comment

Choose a reason for hiding this comment

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

Looks good, however it seems that the last update label for ch.bazl.luftfahrthindernis on 2D is still not working as on the old, but I guess @pakb this is another issue not related to this PR ?

@pakb
Copy link
Contributor Author

pakb commented Jun 12, 2024

Looks good, however it seems that the last update label for ch.bazl.luftfahrthindernis on 2D is still not working as on the old, but I guess @pakb this is another issue not related to this PR ?

Yeah that is fixed in this PR #886

@pakb pakb merged commit dc69260 into develop Jun 12, 2024
@pakb pakb deleted the bug_PB-542_proper_3d_layer_selection branch June 12, 2024 09:31
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