<?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: Clear query results? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26650#M2290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the example you linked, a graphic representation is added to the map which shows the 1 mile buffer. The code "map.graphics.clear" just removes that graphic and doesn't do anything with respect to any selected features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you selected features from a feature layer, simply call &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#clearselection" rel="nofollow" target="_blank"&gt;&amp;lt;your layer&amp;gt;.clearSelection()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 20:40:01 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2013-08-07T20:40:01Z</dc:date>
    <item>
      <title>Clear query results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26648#M2288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using this sample: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/query_buffer.html&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and I'm doing something similar, where a user clicks the map and a buffer is drawn and points selected in that buffer. If I use map.graphics.clear(), the buffer gets cleared, but the selected points remain until you click the map again, which causes another buffer and selection. Is there a similar function I can call to get rid of the queried points? Or do I need to reload the map? I did some searching but couldn't find a solution. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 20:12:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26648#M2288</guid>
      <dc:creator>JessicaKnight1</dc:creator>
      <dc:date>2013-08-07T20:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Clear query results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26649#M2289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since it sounds like you are using a featureLayer, you should just be able to do a clearSelection on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 20:34:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26649#M2289</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-08-07T20:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clear query results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26650#M2290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the example you linked, a graphic representation is added to the map which shows the 1 mile buffer. The code "map.graphics.clear" just removes that graphic and doesn't do anything with respect to any selected features.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you selected features from a feature layer, simply call &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/featurelayer-amd.html#clearselection" rel="nofollow" target="_blank"&gt;&amp;lt;your layer&amp;gt;.clearSelection()&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 20:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26650#M2290</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-08-07T20:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Clear query results?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26651#M2291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you. That works perfectly!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 19:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clear-query-results/m-p/26651#M2291</guid>
      <dc:creator>JessicaKnight1</dc:creator>
      <dc:date>2013-08-08T19:30:24Z</dc:date>
    </item>
  </channel>
</rss>

