<?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: Hide visibility of one table in ArcGISDynamicMapServiceLayer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-visibility-of-one-table-in/m-p/393178#M10192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the VisibleLayers property for the DynamicMapServiceLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say your user names notAllowedUser and your &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; countrytab is the second layer on the map with index 1 and sertab is tenth layer on the map with index 9.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;you will create a int array contain all layer indexes except this two like below and set it to the DynamicLayer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( notAllowedUser is the logged user)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;/SPAN&gt;[] myVisibleLayers = {0, 2, 3, 4, 5, 6, 7, 8};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myArcGISDynamicMapServiceLayer.VisibleLayers = myVisibleLayers;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;/SPAN&gt;[] myVisibleLayers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myArcGISDynamicMapServiceLayer.VisibleLayers = myVisibleLayers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will help too too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/silverlight/api-reference/#ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~VisibleLayers.html" title="https://developers.arcgis.com/silverlight/api-reference/#ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~VisibleLayers.html"&gt;ArcGIS API for Silverlight API Reference| ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 00:37:58 GMT</pubDate>
    <dc:creator>AsserSwelam1</dc:creator>
    <dc:date>2014-09-11T00:37:58Z</dc:date>
    <item>
      <title>Hide visibility of one table in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-visibility-of-one-table-in/m-p/393177#M10191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I need urgent help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &amp;lt;esri:ArcGISDynamicMapServiceLayer ID="StreetMapLayer" Url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.site.com/arcgis/rest/services/Ss/map1/MapServer" rel="nofollow" target="_blank"&gt;http://www.site.com/arcgis/rest/services/Ss/map1/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my web application map is showing properly . In StreetMapLayer I have 10 tables named (nametab,countrytab,sertab, etc....). Now I can see all these 10 layers when I run the application.&lt;/P&gt;&lt;P&gt;Now my requirement is , we dont want to give permission to one user to see 2 layeres from these 10 layers.How can I hide countrytab,sertab from code behind?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 06:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-visibility-of-one-table-in/m-p/393177#M10191</guid>
      <dc:creator>JulieBiju</dc:creator>
      <dc:date>2014-08-11T06:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hide visibility of one table in ArcGISDynamicMapServiceLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-visibility-of-one-table-in/m-p/393178#M10192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the VisibleLayers property for the DynamicMapServiceLayer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say your user names notAllowedUser and your &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; countrytab is the second layer on the map with index 1 and sertab is tenth layer on the map with index 9.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;you will create a int array contain all layer indexes except this two like below and set it to the DynamicLayer. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( notAllowedUser is the logged user)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;/SPAN&gt;[] myVisibleLayers = {0, 2, 3, 4, 5, 6, 7, 8};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myArcGISDynamicMapServiceLayer.VisibleLayers = myVisibleLayers;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&lt;/SPAN&gt;[] myVisibleLayers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myArcGISDynamicMapServiceLayer.VisibleLayers = myVisibleLayers;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will help too too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/silverlight/api-reference/#ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~VisibleLayers.html" title="https://developers.arcgis.com/silverlight/api-reference/#ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer~VisibleLayers.html"&gt;ArcGIS API for Silverlight API Reference| ArcGIS for Developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Asser&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 00:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/hide-visibility-of-one-table-in/m-p/393178#M10192</guid>
      <dc:creator>AsserSwelam1</dc:creator>
      <dc:date>2014-09-11T00:37:58Z</dc:date>
    </item>
  </channel>
</rss>

