Skip to content

PB-995 : Cesium WMTS as composable#1146

Merged
pakb merged 1 commit intodevelopfrom
feat-pb-995-cesium-wmts-composable
Nov 29, 2024
Merged

PB-995 : Cesium WMTS as composable#1146
pakb merged 1 commit intodevelopfrom
feat-pb-995-cesium-wmts-composable

Conversation

@pakb
Copy link
Contributor

@pakb pakb commented Nov 28, 2024

transform the Cesium WMTS component to composition API

Adding a composable that can be used for WMS layers when we want to move them to composition API too.

Issues fixed by this commit :

  • opacity when a layer as a specific config for 3D (like SWISSIMAGE) by giving the 3D config the same opacity as the 2D equivalent. The opacity of the 3D config was used, but the UI is editing the opacity of the 2D layer.
  • error that popped up in the console when switching from 3D to 2D, the camera position is set to null by the unmounted CesiumMap hook and then the sync camera plugin uses the camera value without checking its validity. Adding a little check to remove the error
  • External WMTS style wasn't properly applied to the 3D viewer, a good example is to load swissdatacube WMTS with layer diff_all_CH, as its default style isn't named "default" but something else

Test link

@pakb pakb requested review from ismailsunni, ltkum, ltshb and sommerfe and removed request for ltkum November 28, 2024 15:09
@cypress
Copy link

cypress bot commented Nov 28, 2024

web-mapviewer    Run #3936

Run Properties:  status check passed Passed #3936  •  git commit 314cbca07a: PB-995 : Cesium WMTS as composable
Project web-mapviewer
Branch Review feat-pb-995-cesium-wmts-composable
Run status status check passed Passed #3936
Run duration 05m 06s
Commit git commit 314cbca07a: PB-995 : Cesium WMTS as composable
Committer Pascal Barth
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 21
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 214
View all changes introduced in this branch ↗︎

transform the Cesium WMTS component to composition API

Adding a composable that can be used for WMS layers when we want to move them to composition API too.

Issues fixed by this commit :
- opacity when a layer as a specific config for 3D (like SWISSIMAGE) by giving the 3D config the same opacity as the 2D equivalent.
The opacity of the 3D config was used, but the UI is editing the opacity of the 2D layer.
- error that popped up in the console when switching from 3D to 2D, the camera position is set to null by the unmounted CesiumMap hook and then the sync camera plugin uses the camera value without checking its validity. Adding a little check to remove the error
- External WMTS style wasn't properly applied to the 3D viewer, a good example is to load swissdatacube WMTS with layer diff_all_CH, as its default style isn't named "default" but something else
@pakb pakb force-pushed the feat-pb-995-cesium-wmts-composable branch from 0fe8436 to 314cbca Compare November 29, 2024 08:14
@pakb pakb merged commit a9eb9a0 into develop Nov 29, 2024
@pakb pakb deleted the feat-pb-995-cesium-wmts-composable branch November 29, 2024 08:23
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