The new Map Viewer (both AGOL and Enterprise) should have the ability to filter a layer's data by a date relative to the current date. For example, I have a layer of construction closures that have a start and endate as attributes. I want to apply a filter such that only records where the closing date occurs in the future would be displayed. With Map Viewer Classic, I believe you could edit the map's JSON in AGOL Assistant to implement this but I don't know if this is still possible with the new Map Viewer. Either way, users should have to hack their maps for a pretty standard date filter option.
The choices would be something like:
"occurs on.." <Specific Date | Today>
"occurs on or after.." <Specific Date | Today>
"occurs on or before.." <Specific Date | Today>
It would be nice to also have some addition variants like "within the next week | within the next month" but a relative option like "today" should be the absolute minimum.
We also need this. I wish we could just set a filter to "Field Date" = TODAY, where "Field Date" is the date attribute we use to highlight which worksites need to be visited which day. "In the last X hours" is not useful, as we want the filter to be based on today's calendar day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.