infra-geo-ouverte / igo2-lib

Librairie Infrastructure Géomatique Ouverte 2.0 (IGO-2) / Open GIS Infrastructure 2.0 Library
https://infra-geo-ouverte.github.io/igo2-lib/
40 stars 26 forks source link

Time filter enhancement #265

Open pelord opened 5 years ago

pelord commented 5 years ago

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 commented 5 years ago

Should be related to #101 and #102

pelord commented 1 year ago

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). https://github.com/infra-geo-ouverte/igo2-lib/issues/101

pelord commented 1 year ago

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.

https://github.com/infra-geo-ouverte/igo2-lib/issues/102

pelord commented 1 year ago

https://github.com/infra-geo-ouverte/igo2-lib/issues/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 commented 1 year ago

https://github.com/infra-geo-ouverte/igo2-lib/issues/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