Hi everyone!
I have a list in an Experience Builder, and that list filters a feature layer in the adjacent map. When I select an item in the list the feature layer filter works and when I unselect the same item in the list the filter resets, as it is expected. However, when I unselect the list feature by clicking in the map instead of clicking on the selected item in the list, the list shows no selection but the filter does not reset. I end up with a list showing no selection at all but a map showing a filtered feature layer. That is highly unintuitive. Is this a bug or a feature?
The reason I want to be able to reset filters by clicking on the map is that I would like to be able to select features by using either the list or the map. This way, the filtered feature layer could be filtered when selected via the list or the map. Now, if I select a list item for filtering and later select a feature frome the map, since the filter is not resetted, the filter sees double and it fails.
Here an exemple of my problem : https://experience.arcgis.com/experience/7ac6f699ca024398bc33d0f48928365a
Thanks for helping!
Would you please share a sample app? So we can better pinpoint the problem.
Many thanks!
Here : https://experience.arcgis.com/experience/7ac6f699ca024398bc33d0f48928365a
As you can see, when you select a watershed on the left list, the point feature layer is filtered. To unfilter the feature layer, you MUST unselect the list item. If you click on the map, the list item will be unselected, but the filter will stay active. That is my problem.
Thanks!
The message action is directly triggered by the user. Selecting an item in the list applies the filter as expected, and unselecting the item resets the filter.
In this example, clicking on the map causes the list's state to be passively synchronized, which is not an active or direct behavior. According to the current design, it will not trigger the list's message action to reset the filter.
I hope this helps you. Thank you!