eurodatacube / eodash

Software behind the RACE dashboard by ESA and the European Commission (https://race.esa.int), the Green Transition Information Factory - GTIF (https://gtif.esa.int), as well as the Earth Observing Dashboard by NASA, ESA, and JAXA (https://eodashboard.org)
https://race.esa.int
MIT License
92 stars 42 forks source link

Configure a per layer slot for additional information from layercontrol #2419

Closed lubojr closed 7 months ago

lubojr commented 9 months ago

It should display a legend AND a configured short text for additional information about a layer.

lubojr commented 9 months ago

It is already supported as layer.description and can be freely configured. Currently enables any custom HTML content. We can optionally also parse remote markdown if needed. Example: image

from following config:

layerAdditionalDescription: `A counting district (abbreviated <a href="https://geometadatensuche.inspire.gv.at/metadatensuche/inspire/api/records/7767c333-302c-11e3-beb4-0000c1ab0db6">ZSP</a>) is the smallest area in official Austrian statistics for which statistical data is collected separately.`,

Now it would be a separate task to prepare these descriptions and we can add them to the configs.

lubojr commented 9 months ago

To be internally discussed until next week are 3 options for per-layer configs:

1) custom layer information will be made as clickable info popups on the layers panel 2) or only a shortened information shown directly without popup with idea that any additional info should be referenced out as a link (see above) 3) click layer control button to show info in the right information panel (not suggested)

lubojr commented 7 months ago

It is already supported as layer.description and can be freely configured. Currently enables any custom HTML content. We can optionally also parse remote markdown if needed. Example: image

from following config:

layerAdditionalDescription: `A counting district (abbreviated <a href="https://geometadatensuche.inspire.gv.at/metadatensuche/inspire/api/records/7767c333-302c-11e3-beb4-0000c1ab0db6">ZSP</a>) is the smallest area in official Austrian statistics for which statistical data is collected separately.`,

Now it would be a separate task to prepare these descriptions and we can add them to the configs.

This option is still available.

Additionally each layer now can have a dataInfo property with string value which will lead to a Markdown on this path: https://github.com/eurodatacube/eodash-assets/tree/main/collections/gtif-datainfo as a collapsible panel underneath the current StacInfo content - see https://github.com/eurodatacube/eodash/issues/2422

Closing this issue as well