Skip to content

Instantly share code, notes, and snippets.

@stdavis
Last active September 9, 2020 17:53
Show Gist options
  • Save stdavis/1caaaed863b6be79ca7ecf6a8c200f98 to your computer and use it in GitHub Desktop.
Save stdavis/1caaaed863b6be79ca7ecf6a8c200f98 to your computer and use it in GitHub Desktop.
Proposed Query Filter configuration
"queryFilter": {
"layerName": "TIP Projects",
"fields": [
{
"label": "Funding Program",
"fieldName": "MSTR_PIN",
"fieldType": "text",
"checkboxes": [
{
"label": "CMAQ",
"values": ["WFRC OGDEN/LAYTON CMAQ", "WFRC SALT LAKE/ WEST VALLEY CMAQ"],
"color": "rgb(255, 128, 0)"
},
{
"label": "STP",
"values": ["WFRC OGDEN/LAYTON STP", "WFRC SALT LAKE/ WEST VALLEY STP"],
"color": "rgb(20, 178, 179)"
},
{
"label": "TAP",
"values": ["WFRC OGDEN/LAYTON TAP", "WFRC SALT LAKE/ WEST VALLEY TAP"],
"color": "rgb(56, 168, 0)"
},
{
"label": "Other",
"other": true,
"color": "rgb(255, 100, 155)"
}
]
},
{
"label": "Year",
"fieldName": "FORECAST",
"fieldType": "number",
"checkboxes": [
{
"label": "Before 2020",
"other": true
},
{
"label": "2020",
"values": ["2020"]
},
{
"label": "2021",
"values": ["2021"]
},
{
"label": "2022",
"values": ["2022"]
},
{
"label": "2023",
"values": ["2023"]
},
{
"label": "2024",
"values": ["2024"]
},
{
"label": "2025",
"values": ["2025"]
},
{
"label": "2026",
"values": ["2026"]
}
]
}
]
}
@stdavis
Copy link
Author

stdavis commented Sep 9, 2020

Assumptions:

  • The widget will work with a single layer
  • Each group is specific to a single field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment