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

onclick pop-up with time series via getFeatureInfo #9

Open
opeeters opened this issue Jan 10, 2020 · 1 comment
Open

onclick pop-up with time series via getFeatureInfo #9

opeeters opened this issue Jan 10, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@opeeters
Copy link
Member

Currently, when clicking on a station, you get e.g. this:
Screenshot 2020-01-10 at 12 35 41

When clicking in between stations, this pop-up generated via L.WMS is empty:
Screenshot 2020-01-10 at 12 36 02

Instead, the click-event could trigger a graph generation (concentration versus time) for interval:

  • hmean & 24hmean: last 24 hours
  • dmean: 7 days
  • anmean: 5 years

Example getFeatureInfo:

@stevenvdbosch
Copy link
Collaborator

@opeeters as library we could use chart.js.
I've made a small sample: https://jsfiddle.net/vf2okq8y/

As estimation i would say 2 days. It seems fairly easy to make a single chart, but we should take in to account:

  • to make it generic
  • to test this feature with the different time intervals
  • there is probably some communication needed for the exact styling of this graph (cfr options like "linetension",..)

Some initial questions:
Can you inform me about how to use the getFeatureInfo service? Can i give a bbox of 2 times the point where was clicked? or does it need to be an enclosing bbox?
Is it possible to get multiple times in one request? or do we have to do really 24 requests (for the 24 different hours) for hmean? (this seems a lot and rather inefficient)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants