[GIS] How to exclude the “More” tab where your operational layers are stored in the Flexviewer 2.2

arcgis-flex-apiflex

I am using Robert's awesome TOC widget.
I want to exclude the "more" tab where your operational layers show up, because they are listed in the TOC widget.

Can I do this in the config.xml?

Best Answer

Assuming your talking about this More tab:
enter image description here
This is visible in the default configuration for the current v2.2 Flex Viewer. *

I assume you want to know how to remove it, as it maybe having sync problems with the TOC widget or perhaps you just don't need to show the layers via the More button AND the TOC widget?

I can't take credit for this, but found your answer (untested) in the Esri forums:

Update the Map Switcher Widget's config file.
There is a visible property on the tag which you can set to false to not show the "More" Button.

MapSwitcherWidget.xml:

<?xml version="1.0" ?>
<configuration>
    <layerlist label="More..." visible="false">
        <!-- <excludelayer>TheLabelOfSomeLayerInMainConfig</excludelayer> -->
    </layerlist>
</configuration>
Related Question