layer list: expand layers completely

512
3
01-02-2018 01:21 PM
devarsimajumder2
New Contributor

hello there i have  used the previous thread about allowing all layers in the layer list legend to be be expanded instead of closed and when i insert the code it  doesn't impact performance but  rather no layers  show up.  i am not sure if i have inserted the code incorrectly.   Can someone help me with this that has done this before?  i have inserted a picture of how the coding looks where the  code  is suppose to be inserted.  rscheitlin

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Devarsi,

   What version of WAB are you using?

0 Kudos
devarsimajumder2
New Contributor

I am using version 2.2

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Find the code block below (lines 2-9) and add lines (11 - 16):

      //bind event
      handle = 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);
0 Kudos