<?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: Suggestion: Add LayerInfo.Visibility property to set visibility of sublayer direc in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16629#M411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I understand, you want the client app to update visibility on the server? If yes, I think this is a request you may want to post in the ArcGIS Server team. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the SubLayerList sample, you need not make every sub layer show by default. ArcGISDynamicMapServiceLayer.VisibleLayers can be an empty int[] {} that can be updated everytime a checkbox has been checked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2011 17:40:29 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2011-08-29T17:40:29Z</dc:date>
    <item>
      <title>Suggestion: Add LayerInfo.Visibility property to set visibility of sublayer directly</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16628#M410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For now, the only way to control sublayer's visibility of a ArcGISDynamicMapService is to set its VisibleLayers property(&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SubLayerList&lt;/A&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And on LayerInfo class, there is only a DefualtVisibility property(&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerInfo~DefaultVisibility.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.LayerInfo~DefaultVisibility.html&lt;/A&gt;&lt;SPAN&gt;), which is readonly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought if is there any possibility to add a Visibility property to LayerInfo class, so we could directly control each sublayer's visibility in a dynamic map service, as well as convenience for a twoway binding?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Aug 2011 12:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16628#M410</guid>
      <dc:creator>wangzhifang</dc:creator>
      <dc:date>2011-08-28T12:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion: Add LayerInfo.Visibility property to set visibility of sublayer direc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16629#M411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure I understand, you want the client app to update visibility on the server? If yes, I think this is a request you may want to post in the ArcGIS Server team. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the SubLayerList sample, you need not make every sub layer show by default. ArcGISDynamicMapServiceLayer.VisibleLayers can be an empty int[] {} that can be updated everytime a checkbox has been checked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 17:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16629#M411</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-08-29T17:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion: Add LayerInfo.Visibility property to set visibility of sublayer direc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16630#M412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm not sure I understand, you want the client app to update visibility on the server? If yes, I think this is a request you may want to post in the ArcGIS Server team. &lt;BR /&gt;&lt;BR /&gt;In the SubLayerList sample, you need not make every sub layer show by default. ArcGISDynamicMapServiceLayer.VisibleLayers can be an empty int[] {} that can be updated everytime a checkbox has been checked.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi jennifer, what I mean is not to update the state of the map service on the server, but just control the exact sublayer's visibility on client side. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess because of the exportmap operation of the REST sdk, so the behavior to control a sublayer's visibility is due to control of an int array of visible layers. But this is not convenient for binding. If there is additional Visibility dependencypropery on LayerInfo class, we could just control a sublayer's visibility by directly binding a checkbox on UI, rather than writing additional code in .cs file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe in the setter of Visibility denpendencyproperty, construct a new array of visible layers and refresh the Layer is ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a suggestion, don't know if it's worth to do this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 00:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16630#M412</guid>
      <dc:creator>wangzhifang</dc:creator>
      <dc:date>2011-08-30T00:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion: Add LayerInfo.Visibility property to set visibility of sublayer direc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16631#M413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah that means you only need to tweak the SDK sample a little bit. I've had this sample for awhile, kindly see attached. The client app will not have any layer visible sub layer until the checkbox is clicked.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2011 16:43:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16631#M413</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-08-30T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion: Add LayerInfo.Visibility property to set visibility of sublayer direc</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16632#M414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ah that means you only need to tweak the SDK sample a little bit. I've had this sample for awhile, kindly see attached. The client app will not have any layer visible sub layer until the checkbox is clicked.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jennifer, you must misunderstood what I try to say originally. What I suggested is to use a sublayer(LayerInfo)'s property in binding to control its visibility, but without any code behind. Just don't know if it's worth to do it in API level.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I've learned your example and really appreciate your project.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 00:52:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/suggestion-add-layerinfo-visibility-property-to/m-p/16632#M414</guid>
      <dc:creator>wangzhifang</dc:creator>
      <dc:date>2011-08-31T00:52:45Z</dc:date>
    </item>
  </channel>
</rss>

