I have been tasked with creating a map using data collected in the field, for which there are multiple 1s, 2s, 3s, etc. Is it possible to create a map with pop ups that can display these, when clicked on, and then zoom to others with a similar number, while remaining on the pop up?
Solved! Go to Solution.
It's hard to say without knowing what the data looks like, but basically you'd have:
Clicking an item in the first list can show information on a Details widget, and filter the second list. Enabling "render only when filtered" is probably a good idea here. The filter action can be based on a field, so you click a feature with a "1", then the second list shows other features with a "1".
Clicking an item in the *second* list triggers a "zoom to" in your map, showing you that particular record, but leaving the lists filtered to those matching "1" records.
There's one big caveat to this method. When two widgets share a data source in a dashboard, you cannot filter based on fields between widgets. Clicking an item in the first list will only be able to filter the second list to the exact same feature.
How do we get around this? One is to have the second list tied to the map itself, but have the first list use a standalone layer. This way the data sources, while being the exact same data, can be treated as separate and filter on field values.
Can you give more information about the data structure? You might still need a data expression depending on what these numbers look like and how they're stored.
I don't think so. Popups aren't that interactive.
You could get this to work with a list widget in a Dashboard, though, is that an option for you?
I could indeed, I was just given the option to "get creative"
How would I go about getting a list widget on a dashboard to work this way? I've got one working manually, but it would be nice to see it work with the map itself. Thank you for your help!
It's hard to say without knowing what the data looks like, but basically you'd have:
Clicking an item in the first list can show information on a Details widget, and filter the second list. Enabling "render only when filtered" is probably a good idea here. The filter action can be based on a field, so you click a feature with a "1", then the second list shows other features with a "1".
Clicking an item in the *second* list triggers a "zoom to" in your map, showing you that particular record, but leaving the lists filtered to those matching "1" records.
There's one big caveat to this method. When two widgets share a data source in a dashboard, you cannot filter based on fields between widgets. Clicking an item in the first list will only be able to filter the second list to the exact same feature.
How do we get around this? One is to have the second list tied to the map itself, but have the first list use a standalone layer. This way the data sources, while being the exact same data, can be treated as separate and filter on field values.
Can you give more information about the data structure? You might still need a data expression depending on what these numbers look like and how they're stored.
Actually, this helped out so much that I think I've got it. Thank you!
In terms of how the data is structured, I'm afraid I can only tell you there are 135 entries, 461 features within those entries, and its added to nearly daily. I'm only given permission to use the data, so I'm not actually sure of its structure.
But thank you again! You really helped me out