Check / uncheck "Only show features visible in the map extent" for legend using ArcPy

1197
3
Jump to solution
03-30-2021 05:30 PM
DavidField
New Contributor III

Does anyone know if there is code that can be used to check / uncheck the legend option "Only show features visible in the map extent"?

I seem to spend hours sorting through my layouts turning this on.

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Does this work for you?

showVisibleFeatures : A Boolean that controls whether the legend item displays all values or only those values that appear in the visible extent.

Please check the sample code in LegendItem 



Think Location

View solution in original post

3 Replies
JayantaPoddar
MVP Esteemed Contributor

Does this work for you?

showVisibleFeatures : A Boolean that controls whether the legend item displays all values or only those values that appear in the visible extent.

Please check the sample code in LegendItem 



Think Location
DavidField
New Contributor III

Perfect - thank you!

JF7
by
New Contributor

Hi,

I try the property showVisibleFeatures and dont work. I try other property's and work fine, but  showVisibleFeatures  fail.   Anyone with same problem?  A bug ???

 

0 Kudos