Select to view content in your preferred language

Scale based visibility by attribute in Map Viewer

797
5
Jump to solution
03-07-2025 10:41 AM
Labels (2)
ZenMasterZeke
Frequent Contributor

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.

0 Kudos
1 Solution

Accepted Solutions
RussRoberts
Esri Notable Contributor

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

View solution in original post

5 Replies
RussRoberts
Esri Notable Contributor

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

SaraWazir
Occasional Contributor

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.

0 Kudos
RussRoberts
Esri Notable Contributor

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. 

SaraWazir
Occasional Contributor

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! 

0 Kudos
RussRoberts
Esri Notable Contributor

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. 

0 Kudos