<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exclude layers in TOC in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739252#M22221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I am using the compiled TOC widget from Robert. I want to exclude some layers from displaying in the TOC, not the map. The information is needed, but to reduce the confusion for the user, they only need to see certain features in the TOC. Any suggestion?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what i use to exclude layers in the TOC widget. This is my TOCWidget.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.&amp;nbsp; See use restrictions in the file:
// &amp;lt;install location&amp;gt;/FlexViewer/License.txt
//
////////////////////////////////////////////////////////////////////////////////
--&amp;gt;
&amp;lt;configuration&amp;gt;
 &amp;lt;labels&amp;gt;
&amp;nbsp; &amp;lt;visibilitylabel&amp;gt;Layer Visibility&amp;lt;/visibilitylabel&amp;gt;
&amp;nbsp; &amp;lt;zoomtoextent&amp;gt;Zoom To Layer Extent&amp;lt;/zoomtoextent&amp;gt;
&amp;nbsp; &amp;lt;expandall&amp;gt;Expand All Layers&amp;lt;/expandall&amp;gt;
&amp;nbsp; &amp;lt;collapseall&amp;gt;Collapse All Layers&amp;lt;/collapseall&amp;gt;
&amp;nbsp; &amp;lt;zoomtomakevisible&amp;gt;Zoom To Make Visible&amp;lt;/zoomtomakevisible&amp;gt;
&amp;nbsp; &amp;lt;generatinglegendmsg&amp;gt;Generating TOC Legend&amp;lt;/generatinglegendmsg&amp;gt;
 &amp;lt;/labels&amp;gt;
 &amp;lt;tocsettings&amp;gt;
&amp;nbsp; &amp;lt;expanded&amp;gt;false&amp;lt;/expanded&amp;gt;
&amp;nbsp; &amp;lt;collapselegends&amp;gt;false&amp;lt;/collapselegends&amp;gt;
 &amp;lt;/tocsettings&amp;gt;
 &amp;lt;legendtimeout&amp;gt;60&amp;lt;/legendtimeout&amp;gt;
&amp;lt;excludelayers&amp;gt;
&amp;nbsp; &amp;lt;excludelayer mapservice="&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Basemap Features&lt;/SPAN&gt;"&amp;gt;&lt;SPAN style="color:&amp;quot;#EE82EE&amp;quot;;"&gt;21,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44&lt;/SPAN&gt;&amp;lt;/excludelayer&amp;gt;
&amp;nbsp; &amp;lt;excludelayer mapservice="&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Assessor Information&lt;/SPAN&gt;"&amp;gt;&lt;SPAN style="color:&amp;quot;#EE82EE&amp;quot;;"&gt;3,5&lt;/SPAN&gt;&amp;lt;/excludelayer&amp;gt;
&amp;nbsp; &amp;lt;excludelayer mapservice="&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Annexations&lt;/SPAN&gt;"&amp;gt;&amp;lt;/excludelayer&amp;gt;
 &amp;lt;/excludelayers&amp;gt;
 &amp;lt;excludegraphiclayers&amp;gt;true&amp;lt;/excludegraphiclayers&amp;gt;
 &amp;lt;excludebasemaplayers&amp;gt;true&amp;lt;/excludebasemaplayers&amp;gt;
 &amp;lt;usenewesridescription&amp;gt;false&amp;lt;/usenewesridescription&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;mapservice&lt;/SPAN&gt;&lt;SPAN&gt; is the name you call it in your config.xml file. The &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#EE82EE&amp;quot;;"&gt;number&lt;/SPAN&gt;&lt;SPAN&gt; behind that are only excluding those layers from that service from the TOC. If no numbers are listed for a mapservice it excludes the entire mapservice from the TOC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:27:58 GMT</pubDate>
    <dc:creator>JasonNielsen</dc:creator>
    <dc:date>2021-12-12T07:27:58Z</dc:date>
    <item>
      <title>Exclude layers in TOC</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739251#M22220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the compiled TOC widget from Robert.&amp;nbsp; I want to exclude some layers from displaying in the TOC, not the map.&amp;nbsp; The information is needed, but to reduce the confusion for the user, they only need to see certain features in the TOC.&amp;nbsp; Any suggestion?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 20:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739251#M22220</guid>
      <dc:creator>LeroyChristophersen</dc:creator>
      <dc:date>2012-02-22T20:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude layers in TOC</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739252#M22221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I am using the compiled TOC widget from Robert. I want to exclude some layers from displaying in the TOC, not the map. The information is needed, but to reduce the confusion for the user, they only need to see certain features in the TOC. Any suggestion?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what i use to exclude layers in the TOC widget. This is my TOCWidget.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;?xml version="1.0" ?&amp;gt;
&amp;lt;!--
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010 ESRI
//
// All rights reserved under the copyright laws of the United States.
// You may freely redistribute and use this software, with or
// without modification, provided you include the original copyright
// and use restrictions.&amp;nbsp; See use restrictions in the file:
// &amp;lt;install location&amp;gt;/FlexViewer/License.txt
//
////////////////////////////////////////////////////////////////////////////////
--&amp;gt;
&amp;lt;configuration&amp;gt;
 &amp;lt;labels&amp;gt;
&amp;nbsp; &amp;lt;visibilitylabel&amp;gt;Layer Visibility&amp;lt;/visibilitylabel&amp;gt;
&amp;nbsp; &amp;lt;zoomtoextent&amp;gt;Zoom To Layer Extent&amp;lt;/zoomtoextent&amp;gt;
&amp;nbsp; &amp;lt;expandall&amp;gt;Expand All Layers&amp;lt;/expandall&amp;gt;
&amp;nbsp; &amp;lt;collapseall&amp;gt;Collapse All Layers&amp;lt;/collapseall&amp;gt;
&amp;nbsp; &amp;lt;zoomtomakevisible&amp;gt;Zoom To Make Visible&amp;lt;/zoomtomakevisible&amp;gt;
&amp;nbsp; &amp;lt;generatinglegendmsg&amp;gt;Generating TOC Legend&amp;lt;/generatinglegendmsg&amp;gt;
 &amp;lt;/labels&amp;gt;
 &amp;lt;tocsettings&amp;gt;
&amp;nbsp; &amp;lt;expanded&amp;gt;false&amp;lt;/expanded&amp;gt;
&amp;nbsp; &amp;lt;collapselegends&amp;gt;false&amp;lt;/collapselegends&amp;gt;
 &amp;lt;/tocsettings&amp;gt;
 &amp;lt;legendtimeout&amp;gt;60&amp;lt;/legendtimeout&amp;gt;
&amp;lt;excludelayers&amp;gt;
&amp;nbsp; &amp;lt;excludelayer mapservice="&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Basemap Features&lt;/SPAN&gt;"&amp;gt;&lt;SPAN style="color:&amp;quot;#EE82EE&amp;quot;;"&gt;21,29,30,31,32,33,34,35,36,37,38,39,40,42,43,44&lt;/SPAN&gt;&amp;lt;/excludelayer&amp;gt;
&amp;nbsp; &amp;lt;excludelayer mapservice="&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Assessor Information&lt;/SPAN&gt;"&amp;gt;&lt;SPAN style="color:&amp;quot;#EE82EE&amp;quot;;"&gt;3,5&lt;/SPAN&gt;&amp;lt;/excludelayer&amp;gt;
&amp;nbsp; &amp;lt;excludelayer mapservice="&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;Annexations&lt;/SPAN&gt;"&amp;gt;&amp;lt;/excludelayer&amp;gt;
 &amp;lt;/excludelayers&amp;gt;
 &amp;lt;excludegraphiclayers&amp;gt;true&amp;lt;/excludegraphiclayers&amp;gt;
 &amp;lt;excludebasemaplayers&amp;gt;true&amp;lt;/excludebasemaplayers&amp;gt;
 &amp;lt;usenewesridescription&amp;gt;false&amp;lt;/usenewesridescription&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;mapservice&lt;/SPAN&gt;&lt;SPAN&gt; is the name you call it in your config.xml file. The &lt;/SPAN&gt;&lt;SPAN style="color:&amp;quot;#EE82EE&amp;quot;;"&gt;number&lt;/SPAN&gt;&lt;SPAN&gt; behind that are only excluding those layers from that service from the TOC. If no numbers are listed for a mapservice it excludes the entire mapservice from the TOC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:27:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739252#M22221</guid>
      <dc:creator>JasonNielsen</dc:creator>
      <dc:date>2021-12-12T07:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude layers in TOC</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739253#M22222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the assistance.&amp;nbsp; I had done this, but the results were not the same.&amp;nbsp; It turns out I had left out a command character.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 14:40:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-layers-in-toc/m-p/739253#M22222</guid>
      <dc:creator>LeroyChristophersen</dc:creator>
      <dc:date>2012-02-23T14:40:14Z</dc:date>
    </item>
  </channel>
</rss>

