Open pelord opened 5 years ago
Should be related to #101 and #102
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
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/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://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
Igo Version: 0.26.2 and 1.0.0-alpha
Various enhancement for time-filter
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
See this branch to apply to other styles (calendar, slider) and types, datetime,date ... For ranged values or not... complex component :)