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

Time filter enhancement #265

Open
pelord opened this issue Feb 19, 2019 · 5 comments
Open

Time filter enhancement #265

pelord opened this issue Feb 19, 2019 · 5 comments
Labels
enhancement New features and improvements // Nouvelles fonctionnalités et améliorations

Comments

@pelord
Copy link
Member

pelord commented Feb 19, 2019

Igo Version:
0.26.2 and 1.0.0-alpha

Various enhancement for time-filter

  1. Adding a state button to enabling/disabling the current filter
  2. Adding a reset button to recover the initial state (min value)
  3. Provide warning and a button to activate non visible layers.
  4. Storing filter value and state when leaving component / coming back to component.
  5. Adding a property to enable/disable the filter on load (on init)

At this time, only this type of filter is covering these improvements:

"timeFilter": { "enabled": true, "style" : "slider", "type": "year", "range": false, "timeInterval": 2000, "min": "2019", "max": "2023", "step": 1 }

Here the result at various step
image
image
image
image

See this branch to apply to other styles (calendar, slider) and types, datetime,date ... For ranged values or not... complex component :)

@pelord pelord added enhancement New features and improvements // Nouvelles fonctionnalités et améliorations help wanted labels Feb 19, 2019
@pelord
Copy link
Member Author

pelord commented Feb 26, 2019

Should be related to #101 and #102

@pelord
Copy link
Member Author

pelord commented Dec 8, 2022

Add these enhancements

add slider with range (two dates, start-date / end-date), only calendar can do it for now.
slider step to be change by user with a list of choices (year, month, day).
#101

@pelord
Copy link
Member Author

pelord commented Dec 8, 2022

Based on this example : https://weather.com/fr-CA/temps/cartes/interactive/l/CAON4756:1:CA,
1- no scale on the slider
2- no mouse pointer on the slider
3- implement the timeslider on the map instead of a menu, but:
in case there is different date by wmstime layers (forest fire 2015 versus forest fire 2017), what we can do?

@gignacnic
Member
Author
gignacnic commented on Nov 16, 2017
To implement in phase :
Phase 1:

Add "mouse pointer"
Add CSS and more color (play should follow them css of other button)
Show date filter permanently (such as the field like the calendar)
Phase 2:

implement the timeslider on the map instead of a menu when applicable
Global slider to select step: year, hours, minutes.

#102

@pelord
Copy link
Member Author

pelord commented Dec 8, 2022

#242
When time filter is not defined in context but obtained from service capabilities, the time filter type is not set and then defaults to type 'date'.

As a result services like this one (updated every 6 hours) are not queried appropriately because the hours are truncated:

https://testgeoegl.msp.gouv.qc.ca/apis/ws/geomet?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities&layers=HRDPA.6F_PR

@pelord
Copy link
Member Author

pelord commented Dec 8, 2022

#534

Igo Version: 1.1
Three proposed enhacement for the calendar control in time filter tool :

We should be able to set the date manually (at the moment we can only use the calendar)

Calendar should show the currently selected date

The date should be in correct format according to locale (actually displays as MM/DD/YYYY in french-ca locale, should be YYYY-MM-DD)

Possibility to remove date (for example, end date of filter is undefined, so every features after start date are displayed)

Calendar icon should align correctly above the input line

image

When defining a min date for timeFilter param in context, the day before is available in the calendar, However if this date is chosen the control remains invalid. Exemple with min date of time filter = 1990-01-01 : 1989-12-31 is available in calendar, but control is invalid if selected
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features and improvements // Nouvelles fonctionnalités et améliorations
Projects
None yet
Development

No branches or pull requests

1 participant