My goal is to have a user selected drop down, filter the points on map.
It appears the only way to filter a map is to apply the filter to the default data view.
Filters have the option to select data views, only I cannot find a way to get the map to update.
With the List widget there is an action to Filter the Map, however I have been unable to find this action on a Filter Widget
Does this mean that in order to visually show the results on the map, the filter widget can only be applied to default Data view?
This is the designed behavior of data sources and data views. See details here - https://doc.arcgis.com/en/experience-builder/latest/build-apps/select-data.htm#ESRI_SECTION1_63589EF...
Thus,
- Filtering behavior is at the data source level, so the filter on each data view will not affect the original DS
- The original DS filtering will apply to all views created from it
- Map is using map view, which you can see as equivalent to the original DS
So, it doesn't matter how many views are created, if the filter-map interaction is expected, connecting the filter with the default data source would do. It will affect other widgets using child data views as well.
Is there a way to use a data view in a Map Widget that is not the 'Default' view, I'm trying to use the same map on multiple pages but filter it differently. If I change pages, because it ties to the 'Default' view, I then have 2 filters applied that result in no results being shown. One page is showing 2023 projects, the next 2024. I appreciate that data views can be used for a lot of widgets, they are very useful, but them not being able to be reflected in a map widget, the centerpiece of data, is a bit of a miss.
As Ryan mentioned, the way it currently works seems to encourage creating multiple copies of the map, which is a nuisance for maintenance.
That is exactly what I ended up doing, I think I have 6 identical maps. As a work around for the Filter applying to all views. I have been trying to update symbology and pop-ups on the layer itself, to avoid having to make the same change on 6 maps
It's a pain but it works I suppose. Being able to update the symbology on the layer itself is definitely a good strategy.
The other issue I was finding is that if I have more than one widget linking to a map to filter data (e.g. when a selection changes on a List widget and/or a Feature Info widget, the filter ends up showing nothing, or only prioritizing the one.
Or if I use an action to link the Feature Info widget to change the selection on the List, it doesn't then trigger the action on the list to change the filter. If my thinking for process makes sense haha