terracotta icon indicating copy to clipboard operation
terracotta copied to clipboard

Mutli-dataset Selection in Terracotta connect

Open mccarthyryanc opened this issue 5 years ago • 5 comments

In the Terracotta Preview App, terracotta connect, you can click and select individual datasets in the table search results. Would it be possible to add ctrl+click and shift+click support in order to view multiple datasets at the same time?

mccarthyryanc avatar Apr 03 '19 00:04 mccarthyryanc

That is certainly possible and would be a nice feature. It should also only require a change to the preview app itself. Each dataset would just be another leaflet layer.

mrpgraae avatar Apr 03 '19 06:04 mrpgraae

As @mrpgraae mentions, this is not a fundamental issue at all. However, this would require quite substantial changes to the preview app:

  • Contrast sliders would have to be remodeled (or should the same contrast apply to all layers?)
  • Mechanism to move layers up / down the stack?
  • RGB and singleband not mutually exclusive anymore?
  • Keep layers active across searches

I think in this case we would like a list of active layers that can be manipulated by the user (drag new layers in, press to toggle, remove, reorder).

Since my Javascript fu is limited, we will have to rely on volunteers for this one (inside DHI GRAS or from the outside).

dionhaefner avatar Apr 03 '19 08:04 dionhaefner

Contrast sliders would have to be remodeled (or should the same contrast apply to all layers?)

Maybe as a first go it would be alright to have the same contrast applied to all layers. If you want to compare values from different layers, this is probably what you want anyways.

Mechanism to move layers up / down the stack?

and

Keep layers active across searches

Would be nice, but maybe not strictly necessary for a first implementation.

RGB and singleband not mutually exclusive anymore?

This is worse. Any ideas on what to do here would be appreciated.

mrpgraae avatar Apr 03 '19 09:04 mrpgraae

@mrpgraae your suggestions would fit my use case! I have a simple dataset: non-overlapping layers, same datatype across layer, single band. Keeping the layers active across searches would be nice, but not critical for an initial implementation.

@dionhaefner My javascript fu is also limited, but I will take a look and see if I can get something working.

mccarthyryanc avatar Apr 03 '19 16:04 mccarthyryanc

Sounds good @mccarthyryanc! I suffer from the same JS limitations as @dionhaefner, but I'll gladly help and give advice if needed.

mrpgraae avatar Apr 04 '19 07:04 mrpgraae