Howdy!
I'm trying to set a visibility scale of a layer in a web map based on an attribute of the layer. Specifically, I have a Minor Civil Division (MCD) from the census, and I want to set a larger (more zoomed in) scale for records where the MCD layer Label field ends in 'Township'. Cities and such don't end in that.
I could add the layer twice and set filters on the Label field and use the regular visibility scale, but I'd prefer not to do that because of popups and aesthetic reasons. Is this possible? There is a request for this in Ideas from 2020, but apparently I'm the first person to kudo it. Thanks.
Solved! Go to Solution.
We just added support for honoring web maps with display filters in Map Viewer. Display filters are currently only authored in Pro but you can set up a scale range and define a filter for that range. I am currently working on a blog actually that will go through this workflow that should be out sometime next week. In Map Viewer it will honor the display filter and you can enable/disable that display filter on the layers panel.
Here is the Pro doc on how to author this: https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/display-filters.htm
Sample maps
- Scale based showing more road types as you zoom in
https://jsapi.maps.arcgis.com/apps/mapviewer/index.html?webmap=8488e01d1ade4d21a9b392203bfc73c1
- Manual based on an attribute and you toggle the active display filter for hurricane wind speed
https://jsapi.maps.arcgis.com/apps/mapviewer/index.html?webmap=001228c90de044b08039a864a011a0bc
We just added support for honoring web maps with display filters in Map Viewer. Display filters are currently only authored in Pro but you can set up a scale range and define a filter for that range. I am currently working on a blog actually that will go through this workflow that should be out sometime next week. In Map Viewer it will honor the display filter and you can enable/disable that display filter on the layers panel.
Here is the Pro doc on how to author this: https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/display-filters.htm
Sample maps
- Scale based showing more road types as you zoom in
https://jsapi.maps.arcgis.com/apps/mapviewer/index.html?webmap=8488e01d1ade4d21a9b392203bfc73c1
- Manual based on an attribute and you toggle the active display filter for hurricane wind speed
https://jsapi.maps.arcgis.com/apps/mapviewer/index.html?webmap=001228c90de044b08039a864a011a0bc
is this possible in ArcGIS Online? What is the workflow. It says solved but I dont see anything in my AGOL regarding scale based display filters.
You will need to use ArcGIS Pro to create the display filters and share that map or layer to ArcGIS Online and Map Viewer will honor the display filter and show the enable/disable options for the display filter in the layer properties panel.
ah okay, I was hoping there was a faster way in AGOL alone and that I did not have to go to ArcPro for this. Thank you for clarifying!
No problem, we are working on an authoring experience to support this in Map Viewer. We are looking at later this year early next. If you have an example case where you want to use this and can share we appreciate the feedback to add to our development outlines.