<?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 sublayer from Legend in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240897#M7497</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, that's not supported. It's entered as a possible future enhancement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2012 20:55:55 GMT</pubDate>
    <dc:creator>DasaPaddock</dc:creator>
    <dc:date>2012-06-29T20:55:55Z</dc:date>
    <item>
      <title>Exclude sublayer from Legend</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240894#M7494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it possible to exclude sublayer from legend? Flex Viewer (3.0)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 18:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240894#M7494</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-06-29T18:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude sublayer from Legend</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240895#M7495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you can use the excludelayer tag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Legend_widget_tags/01m30000001r000000/"&gt;http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Legend_widget_tags/01m30000001r000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 18:57:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240895#M7495</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-06-29T18:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude sublayer from Legend</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240896#M7496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, you can use the excludelayer tag.&lt;BR /&gt;&lt;BR /&gt;See:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Legend_widget_tags/01m30000001r000000/"&gt;http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Legend_widget_tags/01m30000001r000000/&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have three sublayers and I just want to exclude one of the sublayer..so this is not going to help me as I do want those other two layers in the legend&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 19:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240896#M7496</guid>
      <dc:creator>ZahidChaudhry</dc:creator>
      <dc:date>2012-06-29T19:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude sublayer from Legend</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240897#M7497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, that's not supported. It's entered as a possible future enhancement.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 20:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240897#M7497</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2012-06-29T20:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude sublayer from Legend</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240898#M7498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How about in Viewer 3.2? Something like this in config.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;layer label="Map" type="dynamic" visible="true" alpha="1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://.../arcgis/rest/services/my_vector/MapServer" rel="nofollow" target="_blank"&gt;http://.../arcgis/rest/services/my_vector/MapServer&lt;/A&gt;&lt;SPAN&gt;" &amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sublayer id="1" label="Asemat"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/layer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And in LegendWidget.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;excludelayer&amp;gt;Asemat&amp;lt;/excludelayer&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does not seem to work...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:31:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240898#M7498</guid>
      <dc:creator>ArtoVuorela</dc:creator>
      <dc:date>2013-04-09T08:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude sublayer from Legend</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240899#M7499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did this by adding and if statement to the CreateChildren function in TOCMapLayerItem.as.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I kept a global var of layers and sublayers I wanted and checked against that in the if statement.&amp;nbsp; I did this because my TOC was dynamic.&amp;nbsp; For your case you could just read from a xml and check against it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Put the if statement around&amp;nbsp; layerInfos.push(layerInfo);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/76052-A-way-to-access-a-layer-inside-a-map-service-without-accessing-it-as-a-feature-layer?p=268843#post268843"&gt;http://forums.arcgis.com/threads/76052-A-way-to-access-a-layer-inside-a-map-service-without-accessing-it-as-a-feature-layer?p=268843#post268843&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 13:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/exclude-sublayer-from-legend/m-p/240899#M7499</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2013-04-09T13:42:35Z</dc:date>
    </item>
  </channel>
</rss>

