Select to view content in your preferred language

TOC Widget - Layers expandable initially?

881
4
Jump to solution
07-26-2012 08:25 AM
ShaningYu
Honored Contributor
To make the layers expandable initially, in TOCWidget.xml I added
  <expandlayeritems>true</expandlayeritems>
But it still does not work.  Any idea you can share?  Thanks.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Shaning,

   In the TOCWidget.xml there are these self explanatory tags:

    <tocsettings>         <expanded everything="false">false</expanded>         <collapselegends>true</collapselegends>         <disablezoomtomenuoption>true</disablezoomtomenuoption>     </tocsettings>


And if you need more details on what they do then see the ReadMe.txt

View solution in original post

0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Shanning,

   I think you are confusing the TOC Widget (mine) and the LayerList widget or MapSwitherWidget (esri)... The configuration <expandlayeritems>true</expandlayeritems> is for the LayerListWidget or the MapSwitcherWidget.
0 Kudos
ShaningYu
Honored Contributor
I know it is for the LayerlistWidget.  Does your TOCWidget have a similar property like that?  Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shaning,

   In the TOCWidget.xml there are these self explanatory tags:

    <tocsettings>         <expanded everything="false">false</expanded>         <collapselegends>true</collapselegends>         <disablezoomtomenuoption>true</disablezoomtomenuoption>     </tocsettings>


And if you need more details on what they do then see the ReadMe.txt
0 Kudos
ShaningYu
Honored Contributor
Wonderful!!  Thanks.
0 Kudos