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.
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
Perfect - thank you!
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 ???
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.