Hi RandallClark,
For LayerList Widget to achieve the requirement you need you have to modify the LayerListView.js
You need to maintain a flag for each layer and pass that to drawListNode function.
for example in my case i have done like below hope that helps for you.
I am passing window.sessionStorage to this function.The values would be 0 and 1.
if(window.sessionStorage.getItem('PrivilageParam') !== ''){
var sessionParams;
sessionParams = window.sessionStorage.getItem('PrivilageParam') ;
var Layer1 = "Layer1_123";
var Layer2 = "Layer2_456";
var paramOutput = [];
if (sessionparam != "" && sessionparam != null){
var sNumber = sessionparam.tostring();
for (var i=0, len=sNumber.length; i < len; i += 1){
paramOutput.push(+sNumber.charAt(i));
}
var strLayer1;
var strLayer2;
strLayer1 = paramOutput[0];
strLayer2 = paramOutput[1];
if (strLayer1 ! = 1) {
if(layerInfo.id ==Layer1){
layerInfo._visible = false;
return;
}
}
if (strLayer2 ! = 1) {
if(layerInfo.id ==Layer2){
layerInfo._visible = false;
return;
}
}
}
Hope this helps.