I'm making a webmap using ArcGIS online that is going to be used in a javascript html webmap. I want the webmap to show all the layers in a legend on the webpage, but they don't show up unless they're selected in the content pane. Is there anyway to show the layers in the legend without having them selected in the content pane?
Patrice,
By selected you mean visible?
Hi,
Yes, by selected I mean visible. I apologize if my question isn't worded clearly, I have been learning this as I go.
Patrice, The Legend widget will automatically update based on layer visibility unless you set the autoUpdate and respectCurrentMapScale to false in the widgets constructor.