Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow units to be added into legend of a Cesium layer in a data portal #2573

Open
justinkadi opened this issue Dec 3, 2024 · 1 comment
Open
Labels
enhancement pdg Permafrost Discovery Gateway

Comments

@justinkadi
Copy link

Describe the feature you'd like
We should be able to add units into the legend of a Cesium layer in a data portal.

Is your feature request related to a problem? Please describe.
Currently, setting units in values does not work, as it is expecting an integer. So, we aren't able to see the units in the legend color map. Our current solution is just to change the label/title for the legend to include the units

Additional context
Screenshot 2024-12-03 at 14 26 12

In the screenshot example, we see only 130 as opposed to 130 g C m-2 yr-1 like it is set in the geoJSON.

@justinkadi justinkadi added enhancement pdg Permafrost Discovery Gateway labels Dec 3, 2024
@robyngit
Copy link
Member

robyngit commented Dec 4, 2024

@justinkadi, once we release the next version of metacatui, these "mini-legends" will be removed from the view:

mini-legend crossed out

We came to the decision as a team that they were less useful than, and redundant to, the main legend that's now available.

Are the units in the legend titles sufficient? If not, where else would you expect the units to be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement pdg Permafrost Discovery Gateway
Projects
None yet
Development

No branches or pull requests

2 participants