Select to view content in your preferred language

Scale based visibility by attribute in Map Viewer

61
1
Jump to solution
Friday
Labels (2)
ZekeMI
by
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

1 Reply
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