<?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 A legend with a subset of a dynamic layer in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492656#M11327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What would be the expression to just show a subset of a dynamic layer in a legend?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The layers property seems to be a good option but how do I use it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example if I have myLegend.layers = [dynamicLayer],&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I change the expression to show only the first two or the last two layers of a service containing 4 layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 12:32:35 GMT</pubDate>
    <dc:creator>ionarawilson1</dc:creator>
    <dc:date>2012-05-21T12:32:35Z</dc:date>
    <item>
      <title>A legend with a subset of a dynamic layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492656#M11327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What would be the expression to just show a subset of a dynamic layer in a legend?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The layers property seems to be a good option but how do I use it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example if I have myLegend.layers = [dynamicLayer],&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I change the expression to show only the first two or the last two layers of a service containing 4 layers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 12:32:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492656#M11327</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-05-21T12:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: A legend with a subset of a dynamic layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492657#M11328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;use &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html#visibleLayers"&gt;visibleLayers&lt;/A&gt;&lt;SPAN&gt; property&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dynamicLayer.visibleLayers = new ArrayCollection([0, 1]);&lt;/PRE&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/samples/01nq/01nq0000001t000000.htm"&gt;sample here&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 12:40:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492657#M11328</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-05-21T12:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: A legend with a subset of a dynamic layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492658#M11329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Ivan!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 18:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492658#M11329</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-05-22T18:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: A legend with a subset of a dynamic layer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492659#M11330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you again Ivan! I finished my project and will be soon posting at the code gallery! Cheers!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 20:47:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/a-legend-with-a-subset-of-a-dynamic-layer/m-p/492659#M11330</guid>
      <dc:creator>ionarawilson1</dc:creator>
      <dc:date>2012-05-22T20:47:34Z</dc:date>
    </item>
  </channel>
</rss>

