xcube-dev / xcube-viewer

A simple viewer component for xcube-server
https://xcube-dev.github.io/xcube-viewer/
MIT License
29 stars 10 forks source link

Restore user-selected dataset options in `xcube-viewer` #426

Open b-yogesh opened 1 month ago

b-yogesh commented 1 month ago

Is your feature request related to a problem? Please describe.

The time is reset every time we select a dataset, and this is a problem for the Maps split view and also when we select a dataset with some timestamp and then select another dataset and return to the original one. To improve the user experience, we should restore the selected time for each dataset that has the time dimension.

Left: Status quo Right: Required solution image_2024_09_13T09_08_26_879Z

This will have twofold advantages:

Some screenshots showing 1) Time Selected for a dataset ksnip_20240912-145503

2) Selecting another dataset ksnip_20240912-145526

3) Selecting the original dataset but the time is reset ksnip_20240912-145543

4) In split view, the time dimension is not passed because the current dataset does not one resulting in error for the dataset that has a time dimension.

ksnip_20240912-164117

The solution you'd like

KerstinS commented 1 month ago

The behaviour as it is now is useful for the case that a user wants to compare same dates from different datasets going back and forth in the data sets. When time in one data set is changed, the other data set should jump to that time as well. Thus there are different ways how to work with the time when changing data sets. The one use case wants to see always the same date in all data sets, the other wants to keep the date that was selected before when the data set was selected.

Aside from this, it would be nice to be able to compare two times from one data set in the split window (different topic....)