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',
'imageShowLegendDivId': layerInfo.id
}, layerTdNode);
Solved! Go to Solution.
That worked great, thank you!
Hey Robert- thanks for all of your help on this! We are using WABD 2.5 and I implemented the codeblock above into the \LayerList\LayerListView.js file, but am seeing no change in behavior whether or not a layer is turned on or off (no layer symbology is presented) .
I'm wondering if you've had a chance to test this at WABD versions above 2.4, or if app theme (we are using the launchpad theme) might have anything to do with it? Thanks again!
-Rex
Thanks everyone, but if I am just using out of the box, not customized nor in our server, Web App Builder this is not possible. We do it this way because we don't want to create more work when upgrading our servers. ESRI can upgrade and may run into compatibility issues.
Ana,
Then you are out of luck, unless esri adds this ability.
Hi ,
Please i search Legend widget with Classification method . .