<?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 Remove graphic by array of ids in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287710#M839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hello, in runtime 10.2.4 we have an ability to add graphic to layer like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;int id = addGraphic(Graphic g),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;and like this:&lt;/SPAN&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;int[] ids = &lt;STRONG style="font-family: courier new,courier,monospace;"&gt;addGraphic(Graphic[] g).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;But when we need to remove graphic, we can do only this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;removeGraphic(int id)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Is there any way to remove many graphic objects from layer at one time, something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;removeGraphic(int[] ids)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2017 19:39:09 GMT</pubDate>
    <dc:creator>DaysieJohnson</dc:creator>
    <dc:date>2017-06-14T19:39:09Z</dc:date>
    <item>
      <title>Remove graphic by array of ids</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287710#M839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Hello, in runtime 10.2.4 we have an ability to add graphic to layer like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;int id = addGraphic(Graphic g),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;and like this:&lt;/SPAN&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;int[] ids = &lt;STRONG style="font-family: courier new,courier,monospace;"&gt;addGraphic(Graphic[] g).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;But when we need to remove graphic, we can do only this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;removeGraphic(int id)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Is there any way to remove many graphic objects from layer at one time, something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;removeGraphic(int[] ids)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier,monospace;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 19:39:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287710#M839</guid>
      <dc:creator>DaysieJohnson</dc:creator>
      <dc:date>2017-06-14T19:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphic by array of ids</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287711#M840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daysie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the documentation, there is no such method. Additionally, you can remove all grahics at one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Adam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Jun 2017 17:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287711#M840</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2017-06-17T17:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Remove graphic by array of ids</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287712#M841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, thats sad, it seems that i need to stay&amp;nbsp;with some workarounds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jun 2017 23:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/remove-graphic-by-array-of-ids/m-p/287712#M841</guid>
      <dc:creator>DaysieJohnson</dc:creator>
      <dc:date>2017-06-25T23:25:58Z</dc:date>
    </item>
  </channel>
</rss>

