Select to view content in your preferred language

ToC for Viewer: Collapse all legends

2661
10
07-18-2012 02:55 PM
JustinGleeson
Deactivated User
Hi All,

Am using the ToC widget for Flex 2.5 and am having trouble getting the legends to open as 'collapsed'. I'm using the following code within the ToC.xml file.[ATTACH=CONFIG]16224[/ATTACH]

<tocsettings>
<expanded>false</expanded>
<collapselegends>false</collapselegends>
</tocsettings>

Ideally I want all layers and legends collapsed/closed so the user has to click and expand to view.

any help appreciated

thanks

Justin
Tags (2)
0 Kudos
10 Replies
JustinGleeson
Deactivated User
You might try this change: 

<visibilitylabel>Testing</visibilitylabel>
and then reload your project. 

Of course, this won't fix it, but it will let you know for sure if the browser is picking up on the changes you make. 

Espescially if using IE, I find that, depending on the workstation it is installed on, a <cntrl><F5> will reload with all changes, on other computers you MUST close the entire browser and then re-open the flex page. 

Anyway, just a thought as I've had this issue before also. 

R_


R_

Yes it's working for sure. Just made that change and it comes up after clearing the cache. No change to the legends though

thanks
0 Kudos