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

[Feature Request]: Fetch 'chart' data when loading a map layer with a chart configuration and display it in the tooltip #1150

Open
wadhwamatic opened this issue Mar 11, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request idea triage to be triaged for next action

Comments

@wadhwamatic
Copy link
Member

wadhwamatic commented Mar 11, 2024

Provide a clear and concise description of what you want to happen.

Since we have pre-extracted admin level data for a few layers (HDC stats api used for charts), we could start displaying that information to users without having to run an analysis. This just an idea for exploration now, but I would like to know how easy it would be to make the stats api call to retrieve admin level data for a layer, and then display the mean value in the tooltip when a user clicks on a layer.

Editing to add more details:
When layers provided through HDC (https://api.earthobservation.vam.wfp.org/ows/) have a chart_data configuration, we can access statistics for each administrative area via the HDC stats API (https://api.earthobservation.vam.wfp.org/stats/admin). In those cases, it's beneficial for users to be able to access these statistics without having to run an analysis.

We should look into:

  1. Adding a parallel request to the stats api when an HDC layer with chart_data is loaded
  2. Adding the received statistics as attributes to the underlying boundary file / polygons while that layer is active
  3. Displaying the statistics in the tooltip
  4. Adding new statistics to the boundary file / polygons whenever a new layer is loaded / or new date requested

Is there anything else you can add about the proposal? You might want to link to related issues here, if you haven't already.

No response

@wadhwamatic wadhwamatic added enhancement New feature or request idea triage to be triaged for next action labels Mar 11, 2024
@wadhwamatic wadhwamatic self-assigned this Mar 11, 2024
@wadhwamatic
Copy link
Member Author

@gislawill - I'll add more details here when I get a minute

@wadhwamatic wadhwamatic removed their assignment Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea triage to be triaged for next action
Projects
None yet
Development

No branches or pull requests

2 participants