Select to view content in your preferred language

Filter the legend by the Map Extent

620
4
12-19-2023 12:23 PM
Labels (1)
Charlie_Kaufman
Occasional Contributor

Is there a way to have the legend update with the map extent?  I'm having a problem which I have a large study area with numerous smaller subset bookmarks.  I would love an easy solution that as my web app moves through the bookmarks my legend changes to only show what is visible in each extent.    So far I have not found a way to do this.

Tags (3)
0 Kudos
4 Replies
RonaldHaug
Frequent Contributor

Hi Charlie,

Have you looked at legend properties? Noodling around in there, you can check off a box which says "show only items which are visible on the map". That's in ArcGIS Pro.

Not sure which program you're using.

0 Kudos
Shen_Zhang
Esri Contributor

Hi @Charlie_Kaufman, you can now use the new legend mode - Show visible layers within current map extent. It's a new feature just released in the ArcGIS Online release.

Shen Zhang
Charlie_Kaufman
Occasional Contributor

Shen- Is this option in the map view or in Web App Builder?  I'm not seeing anything that has that particular "Show visible layers within current map extent" as an option to check.

0 Kudos
Shen_Zhang
Esri Contributor

It's part of the legend widget settings. However, please note that this option works on the layers level, not on the features level. If you have a layer with multiple symbols, all the symbols will display, not just those within the current map extent. 

We will add this feature soon.

Screenshot 2024-11-08 at 09.45.17.png

Shen Zhang