<?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: Setting sublayer visibility in ArcGIS Viewer for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480509#M13516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the quick response!&amp;nbsp; It seems from the code snippet you pointed me to that it really comes down to the built-in functionality of &amp;lt;samples:LayerTOC width="210" height="100%" mapLayer="{myDynamicService}"/&amp;gt; - correct me if I'm wrong ... I've got to head out of town shortly but will try and implement this upon my return next week and let you know how it goes ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I also wanted to give you the heads up that we've been having issues with your Identify Widget.&amp;nbsp; For the most part it works awesomely but we're having an issue with one or two layers that show up in the results with no details (see image) and everything in the config file seems to check out but still no results.&amp;nbsp; I'll start a separate thread on that when I return as well (my image doesn't seem to want to upload right now) ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Oct 2013 17:38:39 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-10-24T17:38:39Z</dc:date>
    <item>
      <title>Setting sublayer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480507#M13514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings!&amp;nbsp; I have a dynamic map service in my application and I would like to programmatically set sublayer visibility on it much as they do in the Table of Contents widget.&amp;nbsp; Can someone suggest how this might be done?&amp;nbsp; Seems like it should be pretty straight forward but I wasn't finding anything in the widget reference offhand ...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 22:18:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480507#M13514</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-23T22:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Setting sublayer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480508#M13515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Here is a link to an API sample to do just that. You can also look at the API docs for the ArcGISDynamicMapServiceLayer.visibleLayers property&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/flex/sample-code/dynamic-map-layers-on-off.htm"&gt;https://developers.arcgis.com/en/flex/sample-code/dynamic-map-layers-on-off.htm&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html"&gt;https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/ArcGISDynamicMapServiceLayer.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 02:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480508#M13515</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-10-24T02:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting sublayer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480509#M13516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the quick response!&amp;nbsp; It seems from the code snippet you pointed me to that it really comes down to the built-in functionality of &amp;lt;samples:LayerTOC width="210" height="100%" mapLayer="{myDynamicService}"/&amp;gt; - correct me if I'm wrong ... I've got to head out of town shortly but will try and implement this upon my return next week and let you know how it goes ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I also wanted to give you the heads up that we've been having issues with your Identify Widget.&amp;nbsp; For the most part it works awesomely but we're having an issue with one or two layers that show up in the results with no details (see image) and everything in the config file seems to check out but still no results.&amp;nbsp; I'll start a separate thread on that when I return as well (my image doesn't seem to want to upload right now) ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 17:38:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480509#M13516</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-24T17:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting sublayer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480510#M13517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; The sample is a little involved (complex) but the jist of it is simply specifying an array of LayerIDs that you want to be visible. If you have a service with 20 sub layers and you want layer 2, 7, 10, 18 to be visible then you just provide and array of those layer ids to the ArcGISDynamicMapServiceLayer.visibleLayers property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;ArcGISDynamicMapServiceLayer.visibleLayers = [2,7,10,18];&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 11:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480510#M13517</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2013-10-25T11:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Setting sublayer visibility</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480511#M13518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for the code snippet - that really helped clarify the matter and guide me toward coding a working solution! Consider this matter closed but I am going to start a new thread that pertains to your Identify Widget so please be on the lookout for that - hopefully I'll be able to upload the screen shot I've got and hopefully I'll be able to explain the matter so that you can understand what's happening and even more hopefully you'll have seen this issue before and know what causes it!&amp;nbsp; Thanks again for help with this matter though ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~ Bob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 22:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-flex-questions/setting-sublayer-visibility/m-p/480511#M13518</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-31T22:06:07Z</dc:date>
    </item>
  </channel>
</rss>

