NASA-IMPACT / veda-ui

Frontend for the Dashboard Evolution project
Other
18 stars 4 forks source link

Load colormaps from TiTiler to ensure tiles and legend agree #885

Open j08lue opened 3 months ago

j08lue commented 3 months ago

Currently, we have to configure both the TiTiler dynamic tiling parameters for a colormap and the stops for the legend component. In principle, the stops could be generated dynamically, ideally by TiTiler, since it receives the rendering specs and we need to make sure legend and tiles agree.

I added a comment to this existing TiTiler feature request:

Acceptance criteria

j08lue commented 3 months ago

TiTiler implemented a method to get the full color table (usually 255 stops), which should work fine for our purpose as well.

Btw, other projects I learned about have been loading colormaps from D3, at least those identical with TiTiler's.

j08lue commented 1 month ago

The/colormaps endpoint (docs here) does not seem to be added to the GHG Center and VEDA APIs yet.

slesaad commented 3 weeks ago

It can be a part of upgrading titiler-pgstac to the latest version - https://github.com/NASA-IMPACT/veda-backend/issues/364.