LayerList: Expand all as default

1709
5
Jump to solution
07-25-2016 06:21 AM
deleted-user-CQZbjNeBXm49
Occasional Contributor III

Hi Robert Scheitlin, GISP,

Please can you help me with this?, with the last tweak you made on the LayerListView.js were you made changes to the "LayerTitleTdNode" to expand the layerlist one level, on upgrading to the new WAB 2.1, the has reset this part of the code but re-aading that bit back in removes all the layers within the list.....

Any solutions to make this work?

Please

Thank you for your constant help

Baba

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Baba,

  See this thread for the 2.1 answer:

Expand All Layers (Layer List v2.1)

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Emeritus

Baba,

  See this thread for the 2.1 answer:

Expand All Layers (Layer List v2.1)

deleted-user-CQZbjNeBXm49
Occasional Contributor III

Hi Robert Scheitlin, GISP,

Thanks for the quick response, however, I only want a level 1 expansion not to include the legends.......What do I need to modify within that code?

Cheers

Baba

0 Kudos
deleted-user-CQZbjNeBXm49
Occasional Contributor III

Thanks Robert figured it out, works now

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Baba,

So just execute:

this.foldOrUnfoldAllRootLayers(false); from inside the LayerListView.js

deleted-user-CQZbjNeBXm49
Occasional Contributor III

Thanks Robert,

Fixed it with the "IF" Statement, didn't work earlier because I missed the structure of the syntax......

Appreciate your help

Baba