Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

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>
share|improve this answer
    
Awesome, thanks. What about excluding a base map tab next to the "More" button such as "Streets" "Aerial" etc? –  pdog Apr 28 '11 at 16:39
1  
Accept the Simon answer by clicking the tick mark button to reward him. Thanks –  Omega Cancer May 11 '11 at 7:53
    
@pdog - those base maps are also configurable via the XML files. If you still want this answered, either re-edit your original question to include this, or ask it as a separate Q. –  Simon May 11 '11 at 10:01
    
Exactly what I was looking for - thanks Simon. –  Timothy Michael Sep 1 '11 at 21:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.