<?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: Delete Graphic in a Graphic Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282253#M26073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured it out.&amp;nbsp; I added the graphics layer to the global variable list and it works. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jaclyn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Jan 2011 15:30:02 GMT</pubDate>
    <dc:creator>JaclynGorman</dc:creator>
    <dc:date>2011-01-28T15:30:02Z</dc:date>
    <item>
      <title>Delete Graphic in a Graphic Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282250#M26070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've looked at other posts but I can't figure out what I am doing wrong.&amp;nbsp; I am creating 2 graphics with my code.&amp;nbsp; A point and a buffer.&amp;nbsp; Basically the user will buffer an area and then be able to mark locations inside the buffer area with points (They can choose between 4 points within a drop-down box).&amp;nbsp; I tried to create a graphic layer so that I can have separate clear buttons for the buffer and points.&amp;nbsp; I can't get the points to clear.&amp;nbsp; I tried&amp;nbsp; onclick= "Graphiclayer.clear()" , but that doesn't work.&amp;nbsp; Currently, I have onclick="map.getLayer('Graphic Layer ID').clear()."&amp;nbsp; The second way only removes the last created point, but the user will be adding multiple points.&amp;nbsp; I am not a programmer/ developer so any help would be appreciated.&amp;nbsp; Ideally it would be awesome if you could remove one point at a time (similar to this example &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm&lt;/A&gt;&lt;SPAN&gt;) but I will settle for just having the buffer and all the points being removed separately. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attaching a text file with my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jaclyn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jan 2011 20:31:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282250#M26070</guid>
      <dc:creator>JaclynGorman</dc:creator>
      <dc:date>2011-01-27T20:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Graphic in a Graphic Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282251#M26071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you are missing a ; after map.graphics.clear()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;change to map.graphics.clear();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 13:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282251#M26071</guid>
      <dc:creator>DavidMaltby</dc:creator>
      <dc:date>2011-01-28T13:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Graphic in a Graphic Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282252#M26072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fixed that issue, but unfortunately it didn't solve the clearing issue.&amp;nbsp; When I go to clear the point graphics it still only clears the last point created and not all the points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 14:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282252#M26072</guid>
      <dc:creator>JaclynGorman</dc:creator>
      <dc:date>2011-01-28T14:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Delete Graphic in a Graphic Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282253#M26073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured it out.&amp;nbsp; I added the graphics layer to the global variable list and it works. Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jaclyn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jan 2011 15:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/delete-graphic-in-a-graphic-layer/m-p/282253#M26073</guid>
      <dc:creator>JaclynGorman</dc:creator>
      <dc:date>2011-01-28T15:30:02Z</dc:date>
    </item>
  </channel>
</rss>

