Is there a place to insert code that would have the layer list widget automatically open with all the layers expanded? Currently, I have the widget opening at start, but I want to be able to see the legend symbols without having to click each layer individually. I feel like it should be in this section somewhere, and I'm missing it:
if (this.map.itemId) {
LayerInfos.getInstance(this.map, this.map.itemInfo)
.then(lang.hitch(this, function(operLayerInfos) {
this.operLayerInfos = operLayerInfos;
this.showLayers();
//this.bindEvents();
this.own(on(this.operLayerInfos,
'layerInfosChanged',
lang.hitch(this, this._onLayerInfosChanged)));
dom.setSelectable(this.layersSection, false);
}));
} else {
var itemInfo = this._obtainMapLayers();
LayerInfos.getInstance(this.map, itemInfo)
.then(lang.hitch(this, function(operLayerInfos) {
this.operLayerInfos = operLayerInfos;
this.showLayers();
//this.bindEvents();
this.own(on(this.operLayerInfos,
'layerInfosChanged',
lang.hitch(this, this._onLayerInfosChanged)));
dom.setSelectable(this.layersSection, false);