Skip to content

PB-496: Fix external layer error and time slider issue#858

Merged
ltshb merged 1 commit intodevelopfrom
bug-PB-496-external-layer-projection
May 23, 2024
Merged

PB-496: Fix external layer error and time slider issue#858
ltshb merged 1 commit intodevelopfrom
bug-PB-496-external-layer-projection

Conversation

@ltshb
Copy link
Contributor

@ltshb ltshb commented May 23, 2024

At startup we never know the projection of the external layers, the projection
is taken from the capabilities that needs to be loaded first. Therefore don't
test projection upon creation and don't do any fallback.

Also fixed an issue when a layer has only one timestamp, the time slider was
displayed but the user could not change the timestamp.

Test link

@ltshb ltshb requested review from ltkum and pakb May 23, 2024 09:44
@github-actions github-actions bot added the bug label May 23, 2024
@cypress
Copy link

cypress bot commented May 23, 2024

Passing run #2271 ↗︎

0 206 20 0 Flakiness 0

Details:

PB-496: Fix external layer error and time slider issue
Project: web-mapviewer Commit: 8617bdafed
Status: Passed Duration: 05:29 💡
Started: May 23, 2024 10:40 AM Ended: May 23, 2024 10:46 AM

Review all test suite changes for PR #858 ↗︎

// Here we cannot take the getter visibleLayers as it also contain the preview and system layers
state.activeLayers.filter(
(layer) => layer.visible && layer.timeConfig?.timeEntries?.length
(layer) => layer.visible && layer.timeConfig?.timeEntries?.length > 1
Copy link
Contributor

Choose a reason for hiding this comment

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

(layer) => layer.visible && layer.hasMultipleTimestamps would also work fine 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea

@ltshb ltshb force-pushed the bug-PB-496-external-layer-projection branch from 9ded642 to 693f14c Compare May 23, 2024 10:30
At startup we never know the projection of the external layers, the projection
is taken from the capabilities that needs to be loaded first. Therefore don't
test projection upon creation and don't do any fallback.

Also fixed an issue when a layer has only one timestamp, the time slider was
displayed but the user could not change the timestamp.
@ltshb ltshb force-pushed the bug-PB-496-external-layer-projection branch from 693f14c to 8617bda Compare May 23, 2024 10:37
@ltshb ltshb changed the base branch from bug-PB-518-remove-slider-3d to develop May 23, 2024 10:38
@ltshb ltshb requested a review from pakb May 23, 2024 10:38
@ltshb ltshb merged commit 333dba9 into develop May 23, 2024
@ltshb ltshb deleted the bug-PB-496-external-layer-projection branch May 23, 2024 11:23
@cypress cypress bot mentioned this pull request May 23, 2024
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