I have a Web Map with configured symbology for a Feature layer based on the attribute field "Number." For each integer number in "Number", the point feature symbol is set to a custom uploaded graphic of that number. In the original Web Map, there may be multiple instances of the same "Number" - but each one has a unique value in a different field, "Name."
I want to save copies of the source Web Map to preserve symbology configuration, then apply filters by "Name" to the copies so that for each unique "Name" Web Map, there is only one instance of each "Number." However, for each "Name" group of features, the highest value of "Number" is not necessarily the same - i.e. Name = Group 1 may have features numbered 1-10, whereas Name = Group 2 may have features 1-18.
This is causing an issue because when I filter by Name in a given copy, the right features are included in the Map with the symbology configured as intended - but ALL features from the original Web Map still display in the Legend. E.g., for Name = Group 3, there is a single feature with symbology from Number, but the Legend still shows features for Numbers 1-19.
Is there any way to enforce that the Legend for a given Map only shows symbology for the features present in that map? It seems like this should be the default, but I have not been able to find a solution yet.
I have tried creating a View and applying the filters in the View creation process, but that does not solve the problem.
Thanks in advance for any suggestions!
In the Map Viewer configuration, could you simply go to the symbology options for the layer and drag the values you don't want to display below into the group that is hidden from legend?
See screenshot, using a layer from the Living Atlas:
@Katie_Clark Thanks for the suggestion - yes, I guess that would work and will be the fallback solution. I am trying to set up a workflow for non-technical users, so hoping to have as little manual modification as possible. It seemed strange to me that there is no systematic way to get this result (honestly strange that features not in the map would be included in the legend at all) so I wanted to see if there was something I was missing.
Hmmm yeah it's certainly cumbersome. I found this ArcGIS idea from way back in 2017, guess it's been a pain point for a while!
https://community.esri.com/t5/arcgis-online-ideas/web-map-legend-only-show-filtered-items-or-items/i...