<?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: Remove previously added graphics from map   in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-previously-added-graphics-from-map/m-p/207788#M19328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be best to keep track of that graphic when you add it. Then just manage it in code.&lt;/P&gt;&lt;P&gt;You can move it using the "setGeometry(..) function or hide() and show() as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html"&gt;Graphic | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Sep 2016 17:55:13 GMT</pubDate>
    <dc:creator>Drew</dc:creator>
    <dc:date>2016-09-19T17:55:13Z</dc:date>
    <item>
      <title>Remove previously added graphics from map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-previously-added-graphics-from-map/m-p/207787#M19327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, As part of my application, I add graphics to a map for a list of features that meet criteria (in cyan). User can select a single record from a list. Application logic adds another graphic for selected record (callout in red). If user click on another record, I want to remove the previously added graphics (red callout) while still maintaining my graphics for original list (in cyan). Is there way I can get handle of graphics that was last added, graphics below shows this scenario. Appreciate any feedback. Thanks Jay&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/230589_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-previously-added-graphics-from-map/m-p/207787#M19327</guid>
      <dc:creator>jayshukla</dc:creator>
      <dc:date>2016-09-19T17:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove previously added graphics from map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-previously-added-graphics-from-map/m-p/207788#M19328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be best to keep track of that graphic when you add it. Then just manage it in code.&lt;/P&gt;&lt;P&gt;You can move it using the "setGeometry(..) function or hide() and show() as needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/graphic-amd.html"&gt;Graphic | API Reference | ArcGIS API for JavaScript 3.17&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2016 17:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-previously-added-graphics-from-map/m-p/207788#M19328</guid>
      <dc:creator>Drew</dc:creator>
      <dc:date>2016-09-19T17:55:13Z</dc:date>
    </item>
  </channel>
</rss>

