<?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 OnDemand FeatureLayer in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63094#M1579</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to have a list box on the right side of my Map to list the Name attribute of the features displayed on screen. So every time map extent changes, the list gets updated with the names of displayed features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the feature layer added in OnDemand mode. Since the feature layer (in OnDemand mode) only returns the features in the map extent I was wondering if there is a method to retrieve the Name attribute of the returned features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of performing a spatial query each time the map extent changes, I simply retrieve the attribute from the features that is displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hint would be greatly appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mansour&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 17:39:01 GMT</pubDate>
    <dc:creator>MansourArshon</dc:creator>
    <dc:date>2010-08-17T17:39:01Z</dc:date>
    <item>
      <title>OnDemand FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63094#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to have a list box on the right side of my Map to list the Name attribute of the features displayed on screen. So every time map extent changes, the list gets updated with the names of displayed features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the feature layer added in OnDemand mode. Since the feature layer (in OnDemand mode) only returns the features in the map extent I was wondering if there is a method to retrieve the Name attribute of the returned features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of performing a spatial query each time the map extent changes, I simply retrieve the attribute from the features that is displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hint would be greatly appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mansour&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 17:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63094#M1579</guid>
      <dc:creator>MansourArshon</dc:creator>
      <dc:date>2010-08-17T17:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: OnDemand FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63095#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could add a handler to your layers UpdateCompleted event, and enumerate the layers Graphics collection to build a list. I've done something similar like this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim layer As FeatureLayer = TryCast(sender, FeatureLayer)
For Each g As Graphic In layer.Graphics
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim mg As New MyGraphic With {.Label = g.Attributes("Label")}
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; newList.Add(mg)
Next
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:24:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63095#M1580</guid>
      <dc:creator>JamesMolohon</dc:creator>
      <dc:date>2021-12-10T22:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: OnDemand FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63096#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It isn't doing what it expected to do; I am using the following FeatureLayer: &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0" rel="nofollow noopener noreferrer" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0&lt;/A&gt; &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I add this featurelayer in snap shot mode, the count value is 500 (which is the correct total number of features) but if I add it in OnDemand mode, the count value is variable number much bigger than 500 and showing even bigger number every time the map extent changes, even when I am zooming in. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
Dim layer As FeatureLayer = MyMap.Layers.Item(1)
mytxt.Text = layer.Graphics.Count
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63096#M1581</guid>
      <dc:creator>MansourArshon</dc:creator>
      <dc:date>2021-12-10T22:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: OnDemand FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63097#M1582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I didn't realized that spatial query is performed in client side. I was trying to avoid the traffic when I wanted to avoid the spatial query approach. In fact, now I learned that performing spatial query is easier and quicker.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 20:55:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/ondemand-featurelayer/m-p/63097#M1582</guid>
      <dc:creator>MansourArshon</dc:creator>
      <dc:date>2010-08-17T20:55:46Z</dc:date>
    </item>
  </channel>
</rss>

