AnsweredAssumed Answered

Show legend in Layer List widget by default

Question asked by louchios on Jan 31, 2017
Latest reply on Feb 28, 2019 by jtrappet2010

I would like the Layer List to display the legend by default (instead of clicking on the layer for the dropdown legend to appear).


I tried editing the following code in LayerListView.js where I added the "unfold" text, but all that does is update the triangle orientation like the screenshot below. Thank you.


imageShowLegendDiv = domConstruct.create('div', {
'class': 'showLegend-div jimu-float-leading unfold',
}, layerTdNode);