Select to view content in your preferred language

Filter the legend by the Map Extent

818
6
12-19-2023 12:23 PM
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
6 Replies
RonaldHaug
MVP

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
Charlie_Kaufman
Occasional Contributor

Is this in Exp Builder?  I know we all need to be migrating over to that, but I have 100s of historical Web Applications and users that are still used to the original Web App builder so I am still fielding lots of questions about the original.    It is nice to know that feature exists in the newer builds.

0 Kudos
Shen_Zhang
Esri Contributor

Yes, it's available since June 2024 Online release (Enterprise 11.4).

Shen Zhang
0 Kudos