<?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: Update FeatureLayer without using Update() in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/update-featurelayer-without-using-update/m-p/10201#M192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of FeatureLayer, use a GraphicsLayer + a QueryTask, and add the features to the graphics layer that return from the QueryTask. In your update method, you then set a where clause that specifies the added/modified date to be newer than any features you already have. Ie something along the lines of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Where="LastUpdated&amp;gt;'"+(from a in layer.Graphics select ((DateTime)a.Attributes["LastUpdated"])).Max().ToString() + "'";&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2011 15:18:14 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2011-09-29T15:18:14Z</dc:date>
    <item>
      <title>Update FeatureLayer without using Update()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/update-featurelayer-without-using-update/m-p/10200#M191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am referencing a USGS Feature Layer and want the map to show the new features when new features are added to the service. How can I handle this without using a ticker and calling Update() on the FeatureLayer, which in return does a full refresh of the layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried implementing the code from the blog, but I get an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/01/23/Listen-for-updates-to-a-FeatureLayer.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2010/01/23/Listen-for-updates-to-a-FeatureLayer.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 15:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/update-featurelayer-without-using-update/m-p/10200#M191</guid>
      <dc:creator>BenSher1</dc:creator>
      <dc:date>2011-09-28T15:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Update FeatureLayer without using Update()</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/update-featurelayer-without-using-update/m-p/10201#M192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of FeatureLayer, use a GraphicsLayer + a QueryTask, and add the features to the graphics layer that return from the QueryTask. In your update method, you then set a where clause that specifies the added/modified date to be newer than any features you already have. Ie something along the lines of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.Where="LastUpdated&amp;gt;'"+(from a in layer.Graphics select ((DateTime)a.Attributes["LastUpdated"])).Max().ToString() + "'";&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2011 15:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/update-featurelayer-without-using-update/m-p/10201#M192</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2011-09-29T15:18:14Z</dc:date>
    </item>
  </channel>
</rss>

