Skip to content

Render coverage using tints for datasets with multiple variants, otherwise older colour palette matching from the website. - #330

Open
adpeace wants to merge 2 commits into
ucam-eo:mainfrom
adpeace:main
Open

Render coverage using tints for datasets with multiple variants, otherwise older colour palette matching from the website.#330
adpeace wants to merge 2 commits into
ucam-eo:mainfrom
adpeace:main

Conversation

@adpeace

@adpeace adpeace commented Jul 23, 2026

Copy link
Copy Markdown

This change:

  1. Commit 1: Updates the CLI so that coverage for single-variant datasets is rendered using the old multi-colour legend rather than a per-variant tint.
  2. Commit 2: Update the local globe page to render the correct legend depend on if there is one or multiple datasets present.

Testing:

uv run geotessera coverage -o coverage-dir
(cd coverage-dir && python3 -m http.server)

And checked the output. NOTE: I only have access to a dataset with a single variant so am not able to properly test the multiple-variant case.

AI usage declaration: Second commit for legend update written with the assistance of Claude, reviewed, updated, and approved by me. I'm hardly a typescript expert, though...

adpeace added 2 commits July 23, 2026 21:50
The geotessera.org site assumes the older colourful legend is used, but
when this tool renders coverage for v2 datasets it uses a tint per
dataset.  When there's only one data present it now defaults to the old
swatch to match what geotessera.org expects.
Previously the tool always used the tint mode, but the prior commit
changed this to use the old legend style to match the website when only
a single variant was present.  This change fixes the legend rendered by
the CLI tool to match: use the old non-tint version when one variant is
present, otherwise use the tints as before.
@adpeace
adpeace marked this pull request as ready for review July 23, 2026 21:23
@avsm

avsm commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

I'll merge this after trying it out on a few more variants; I'm not satisfied with the multi-variant tint either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants