You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Filter Layer tool, it would be useful to have the ability to set predefined ranges
Acceptance criteria
The date/date-time components should use the latest component
The plugin configuration property is as follows
The configuration property name is quickDateTimeSelectors and holds array of objects with type, value and label will hold the custom label for each quick selector
isoFormat: P[n]Y[n]M[n]DT[n]H[n]M[n]S / P[n]W (refer Durations) dateExpression: {now}[+/-]${isoFormat}, where {now} is a placeholder to add current date-time based on field type(optional for single), + adds date/time and - subtracts date/time supportable placeholders - now, today, thisWeekStart | thisWeekEnd, thisMonthStart | thisMonthEnd, thisYearStart | thisYearEnd (except now, today other placeholders are a nice to have feature) single - {dateExpression} range - {dateExpression}/{dateExpression} (valid - end date > start date). / delimiter denotes range value
date - start time is always 00:00:00 date-time will treat 00:00:00 as start and 23.59:00 as end time
Example
single - {today}-P1D - Yesterday (date), {now}+P0D - Today (date-time), {now}+P7D - 7 days from now (date-time), {today}+P2M3D - 2 months and 3 days from now (date).
range - {now}/{now}+P5D - now to 5 days from now, {now}/PT5M - now to 5mins from now (date-time), {today}/{today}+P5D - today to 5 days from today
Defaults and options
For intervals date:
Today, This week, This month, 7, 30, 90 days from now
For intervals date-time:
Now, This week, This month, 7, 30, 90 days from now
Description
In the Filter Layer tool, it would be useful to have the ability to set predefined ranges
Acceptance criteria
The configuration property name is
quickDateTimeSelectors
and holds array of objects withtype
,value
andlabel
will hold the custom label for each quick selectorvalue
is in ISO 8601 formatNote
Template
isoFormat:
P[n]Y[n]M[n]DT[n]H[n]M[n]S
/P[n]W
(refer Durations)dateExpression:
{now}[+/-]${isoFormat}
, where{now}
is a placeholder to add current date-time based on field type(optional for single),+
adds date/time and-
subtracts date/timesupportable placeholders -
now
,today
,thisWeekStart
|thisWeekEnd
,thisMonthStart
|thisMonthEnd
,thisYearStart
|thisYearEnd
(exceptnow
,today
other placeholders are a nice to have feature)single -
{dateExpression}
range -
{dateExpression}/{dateExpression}
(valid - end date > start date)./
delimiter denotes range valuedate - start time is always 00:00:00
date-time will treat 00:00:00 as start and 23.59:00 as end time
Example
{today}-P1D
- Yesterday (date),{now}+P0D
- Today (date-time),{now}+P7D
- 7 days from now (date-time),{today}+P2M3D
- 2 months and 3 days from now (date).{now}/{now}+P5D
- now to 5 days from now,{now}/PT5M
- now to 5mins from now (date-time),{today}/{today}+P5D
- today to 5 days from todayDefaults and options
For intervals date:
For intervals date-time:
For single dates:
For single date-time:
E.g.
Other useful information
https://github.com/geosolutions-it/MapStore2-C040/issues/819
The text was updated successfully, but these errors were encountered: