Expand All Layers (Layer List v2.1)

1297
2
Jump to solution
07-21-2016 10:58 AM
JasonStanton__GISP
Occasional Contributor

I'm looking for a way to expand all layers and sublayers automatically (so that symbology can be seen also) from within the LayerList widget v2.1.  Any assistance would be greatly appreciated!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Jason,

In the widgets/LayerList/LayerListView.js find line 203 - 211 and change it to this:

//bind event
      this.own(on(layerTitleTdNode,
        'click',
        lang.hitch(this,
          this._onRowTrClick,
          layerInfo,
          imageShowLegendDiv,
          layerTrNode,
          tableNode)));
          setTimeout(lang.hitch(this,
                     this._onRowTrClick,
                     layerInfo,
                     imageShowLegendDiv,
                     layerTrNode,
                     tableNode), 300);

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Jason,

In the widgets/LayerList/LayerListView.js find line 203 - 211 and change it to this:

//bind event
      this.own(on(layerTitleTdNode,
        'click',
        lang.hitch(this,
          this._onRowTrClick,
          layerInfo,
          imageShowLegendDiv,
          layerTrNode,
          tableNode)));
          setTimeout(lang.hitch(this,
                     this._onRowTrClick,
                     layerInfo,
                     imageShowLegendDiv,
                     layerTrNode,
                     tableNode), 300);
JasonStanton__GISP
Occasional Contributor

As always you are spot on, thanks very much!!

0 Kudos