<?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: Featurelayer.visible problem in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546324#M13969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You have several options and these may not include all. I suggest you try them out and find a design that fits your need.&lt;BR /&gt;&lt;BR /&gt;You can start your map with ArcGISDynamicMapServiceLayer, setting its VisibleLayers to exclude FeatureLayer's you want to turn off, when Legend control updates a sublayer visibility to true, you can create a FeatureLayer. &lt;BR /&gt;&lt;BR /&gt;You can start your map with FeatureLayers Visible=False and let Legend control update each layer visibility. If the concern here is getting features before the layer is Visible, you can set FeatureLayer.Where="1 != 1" to ensure no features are returned when the layer is not visible. When layer becomes visible, FeatureLayer.Where="1=1" to query all features and call FeatureLayer.Update(). Or you can set Mode=SelectionOnly while its Visible=False and Mode=OnDemand when Visible=True, and call FeatureLayer.Update().&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot,I think I've got the point, have a nice day jenniferdnery!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 05:39:02 GMT</pubDate>
    <dc:creator>wzm</dc:creator>
    <dc:date>2011-10-20T05:39:02Z</dc:date>
    <item>
      <title>Featurelayer.visible problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546320#M13965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi guys, in my solution project,I use the mef(microsoft extensible framework) to dynamicly load my layers, so there is the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For the reason of efficiency ,which solution below should I take?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1:Binding a Legendlike treeview to Featurelayers,contol the loading featurelayer action by tiping the treeview checkbox;In this way, everytime we switch the visibility of the layer,actually we reload a new featurelayer,I think it works in low efficiency?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.Like the ESRI suggests, just load all the layers at the beginning,and control every layer's visibility by Legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is better for a larger project?I suggest the second,but my boss took the first,i just want to know ,how&amp;nbsp; the visibilty property works?when it is false,it stores the data in memory?Any reply will be appreciated!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 04:04:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546320#M13965</guid>
      <dc:creator>wzm</dc:creator>
      <dc:date>2011-10-14T04:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer.visible problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546321#M13966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This documentation might help: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/help/index.html#//016600000015000000.htm"&gt;http://help.arcgis.com/en/webapi/silverlight/help/index.html#//016600000015000000.htm&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer.Visible=False would still query the service for metadata and features. If you are concerned about the request and keeping a GraphicCollection while layer is not visible, you can maybe update your FeatureLayer.Where clause to where it will not return features or make FeatureLayer.Mode to SelectionOnly. Or you can use ArcGISDynamicMapServiceLayer if you will not be doing any editing, you can update ArcGISDynamicMapServiceLayer.VisibleLayers property instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 17:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546321#M13966</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-10-14T17:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer.visible problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546322#M13967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thaks for reply,according to your advice, if user usually would change the featurelayer's visibility(Like legend does), which solution is better,loadind all the featurelayer at the very begining and leting the Legend do the rest job(just controling each layer's visibility property),or dynamiclly loading the featurelayer when setting the visibility of each layer(everytime switch the visibility,we have to rebuild the featurelayer once)? I still prefer the first, could you give me some advice?thanks very much~&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Oct 2011 14:31:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546322#M13967</guid>
      <dc:creator>wzm</dc:creator>
      <dc:date>2011-10-15T14:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer.visible problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546323#M13968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have several options and these may not include all. I suggest you try them out and find a design that fits your need.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can start your map with ArcGISDynamicMapServiceLayer, setting its VisibleLayers to exclude FeatureLayer's you want to turn off, when Legend control updates a sublayer visibility to true, you can create a FeatureLayer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can start your map with FeatureLayers Visible=False and let Legend control update each layer visibility. If the concern here is getting features before the layer is Visible, you can set FeatureLayer.Where="1 != 1" to ensure no features are returned when the layer is not visible. When layer becomes visible, FeatureLayer.Where="1=1" to query all features and call FeatureLayer.Update(). Or you can set Mode=SelectionOnly while its Visible=False and Mode=OnDemand when Visible=True, and call FeatureLayer.Update().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 16:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546323#M13968</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2011-10-19T16:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Featurelayer.visible problem</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546324#M13969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You have several options and these may not include all. I suggest you try them out and find a design that fits your need.&lt;BR /&gt;&lt;BR /&gt;You can start your map with ArcGISDynamicMapServiceLayer, setting its VisibleLayers to exclude FeatureLayer's you want to turn off, when Legend control updates a sublayer visibility to true, you can create a FeatureLayer. &lt;BR /&gt;&lt;BR /&gt;You can start your map with FeatureLayers Visible=False and let Legend control update each layer visibility. If the concern here is getting features before the layer is Visible, you can set FeatureLayer.Where="1 != 1" to ensure no features are returned when the layer is not visible. When layer becomes visible, FeatureLayer.Where="1=1" to query all features and call FeatureLayer.Update(). Or you can set Mode=SelectionOnly while its Visible=False and Mode=OnDemand when Visible=True, and call FeatureLayer.Update().&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot,I think I've got the point, have a nice day jenniferdnery!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 05:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/featurelayer-visible-problem/m-p/546324#M13969</guid>
      <dc:creator>wzm</dc:creator>
      <dc:date>2011-10-20T05:39:02Z</dc:date>
    </item>
  </channel>
</rss>

