ArcGIS Legend Items – How to Show Only Legend Items Displayed on Map in ArcGIS Desktop

arcgis-9.3arcgis-desktoplegend

Using ArcGIS Desktop, is there a way for the legend, to only show the subitems that are displayed on the map?

Best Answer

There is no need to write any additional ArcPy for this. Simply use dynamic legends (which were added at ArcGIS 10.1) when you are authoring your maps.

The Map Extent Options allow you to control how eligible legend items interact with the current map extent. If the Only show classes that are visible in the current map extent check box is checked, a legend item class will only appear in the legend if a feature from that class is in the current extent. If no features from that legend item are in the current extent, the entire item will be removed from the legend.

Related Question