Select to view content in your preferred language

Possible to remove the expand/collapse legend icon in the Map Layers widget?

274
2
08-28-2025 10:01 AM
JonJones1
Frequent Contributor

In Experience Builder, how can I disable the "expand/collapse legend" icon in the Map Layers widget?

My goal is to keep the legend for each layer permanently expanded, preventing users from collapsing it. I'd prefer to accomplish this within the Map Layers widget itself, rather than using a separate Legend widget.

Is this possible through configuration, or is this behavior hard-coded?

legend expanders.jpg

0 Kudos
2 Replies
JeffreyThompson2
MVP Frequent Contributor

There's not a built-in option for this. In Developer Edition, it might be possible to hide the button with CSS or to edit the Map Layer Widget to remove this option.

GIS Developer
City of Arlington, Texas
0 Kudos
JonJones1
Frequent Contributor

Thank you so much for the info!  Also thank you for answering so many questions on this board overall! 

0 Kudos