<?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 How to set visibility to certain layer and keep the rest layer's visibility? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249262#M6507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my code, I want to change the visibility of one single layer in a dynamic map service and keep the visibility of the rest layers in that map service the same as before. How could I fulfill it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 13:33:56 GMT</pubDate>
    <dc:creator>weiliang</dc:creator>
    <dc:date>2011-04-06T13:33:56Z</dc:date>
    <item>
      <title>How to set visibility to certain layer and keep the rest layer's visibility?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249262#M6507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my code, I want to change the visibility of one single layer in a dynamic map service and keep the visibility of the rest layers in that map service the same as before. How could I fulfill it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 13:33:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249262#M6507</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-04-06T13:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to set visibility to certain layer and keep the rest layer's visibility?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249263#M6508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList&lt;/A&gt;&lt;SPAN&gt;. If you know which sub layer you want to turn off, then make sure that you don't add it to your visibleLayers, regardless of the result of this check (layer.DefaultVisibility).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Skip the following lines for layer that you want to turn off.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; if (layerInfoArray[index].DefaultVisibility) 
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibleLayerIDList.Add(index); 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249263#M6508</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to set visibility to certain layer and keep the rest layer's visibility?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249264#M6509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Many thanks, Jennifer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wei&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 17:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-set-visibility-to-certain-layer-and-keep/m-p/249264#M6509</guid>
      <dc:creator>weiliang</dc:creator>
      <dc:date>2011-04-06T17:12:53Z</dc:date>
    </item>
  </channel>
</rss>

