Select to view content in your preferred language

Map Layer Visibility and Map Legend

1241
3
07-24-2019 05:42 AM
PatrickMcKinney1
Frequent Contributor

I had a question regarding maps and apps created in ArcGIS Online.  It seems that a layer will only display on the legend when it is displayed on the map.

If the map is at a scale where they layer is not set to turn on (scale dependency), then the layer will not display on the map.  But once a user zooms in, the layer turns on, and then it appears in the legend.

Is this the default behavior of the legend?  If so, is there a way to get the layers to always show in the legend, even if they have a scale dependency set?

0 Kudos
3 Replies
Katie_Clark
MVP Regular Contributor

Hi Patrick,

I don't think you can change this behavior in the web map, but you can definitely change it in web apps. Go to the Widgets tab and edit the Legend widget (this could likely be within the Header Controller widget at the top). Uncheck the box to respect the current map scale. That way, as long as the layer is turned on in the TOC, it will appear in the legend. 

Hope that helps!

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos
PatrickMcKinney1
Frequent Contributor

Thanks for the tip.  Your example appears to be Web App Builder.  Does your answer also apply to StoryMaps and configurable apps?

0 Kudos
Katie_Clark
MVP Regular Contributor

Not that I know of, but then again I haven't used many of the templates. I also go to Web AppBuilder by default since it allows for much more customization of the widgets. 

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos