<?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 Extra Graphic Created by JavaScript 3.x API Draw Toolbar in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011444#M71153</link>
    <description>&lt;P&gt;When using&amp;nbsp;esri/toolbars/draw in versions of the JavaScript API starting at 3.31 there is an extra graphic added to the map when using the arrow, circle, triangle, and ellipse tools. It appears in the center of the graphic, where you click to start creating the graphic. When you zoom in or out, these graphics locations are not adjusted and if you are trying to add your graphics to a GraphicsLayer they are not removed when the layer is cleared even through the final graphic is. The graphics I am talking about appear in red in this image:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrome_DzJnVNq6yM.png" style="width: 231px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2674i043572F2D7DAE2A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="chrome_DzJnVNq6yM.png" alt="chrome_DzJnVNq6yM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see this with the draw toolbar sample (&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw&lt;/A&gt;). If you bump the version in the sample back to 3.30, this issue goes away so it seems like a bug in the API. Is there a workaround to prevent these graphics from being created?&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 21:07:08 GMT</pubDate>
    <dc:creator>ChristopherEby2</dc:creator>
    <dc:date>2020-12-21T21:07:08Z</dc:date>
    <item>
      <title>Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011444#M71153</link>
      <description>&lt;P&gt;When using&amp;nbsp;esri/toolbars/draw in versions of the JavaScript API starting at 3.31 there is an extra graphic added to the map when using the arrow, circle, triangle, and ellipse tools. It appears in the center of the graphic, where you click to start creating the graphic. When you zoom in or out, these graphics locations are not adjusted and if you are trying to add your graphics to a GraphicsLayer they are not removed when the layer is cleared even through the final graphic is. The graphics I am talking about appear in red in this image:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chrome_DzJnVNq6yM.png" style="width: 231px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2674i043572F2D7DAE2A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="chrome_DzJnVNq6yM.png" alt="chrome_DzJnVNq6yM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see this with the draw toolbar sample (&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=toolbar_draw&lt;/A&gt;). If you bump the version in the sample back to 3.30, this issue goes away so it seems like a bug in the API. Is there a workaround to prevent these graphics from being created?&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 21:07:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011444#M71153</guid>
      <dc:creator>ChristopherEby2</dc:creator>
      <dc:date>2020-12-21T21:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011485#M71154</link>
      <description>&lt;P&gt;I don't see any issue in Chrome using the 3.35 CDN.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 17:00:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011485#M71154</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-21T17:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011540#M71156</link>
      <description>&lt;P&gt;I am seeing it on&amp;nbsp;Chrome &lt;SPAN&gt;87.0.4280.88,&amp;nbsp;&lt;/SPAN&gt;86.0.4240.183, and 79.3945.130. Each of those versions are on a different PC. It does work correctly for me in Firefox.&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1104"&gt;@RobertScheitlin__GISP&lt;/a&gt;&amp;nbsp;are you using the&amp;nbsp;&lt;SPAN&gt;arrow, circle, triangle, or ellipse options? Because the point, line, polygon, etc options don't seem to have this issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 18:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011540#M71156</guid>
      <dc:creator>ChristopherEby2</dc:creator>
      <dc:date>2020-12-21T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011552#M71157</link>
      <description>&lt;P&gt;I may have a workaround. It seems that the unwanted graphics are being added to the map's GraphicsLayer. In my application I am adding the graphics created by the draw tool to a custom graphics layer so I can do a map.graphics.clear() call and remove the graphics from the map's layer every time I create a new graphic. This removes the unwanted graphics but still allows the final graphic to show on the map since it's in my custom layer. Now I just have to make sure nothing else in my map is added to the&amp;nbsp;map.graphics layer because that will get wiped out using this solution.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 19:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011552#M71157</guid>
      <dc:creator>ChristopherEby2</dc:creator>
      <dc:date>2020-12-21T19:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011575#M71158</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;SPAN&gt;Version 87.0.4280.88 (Official Build) (64-bit) of Chrome and using circle and arrow drawing tools and there is no extra graphic. I remember some people having an issue and it was hardware related, Best to call tech support on this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 20:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011575#M71158</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-12-21T20:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011706#M71167</link>
      <description>&lt;P&gt;I tested on another machine today where it worked correctly in Chrome. So it does appear to be hardware related but I can't control what hardware my users have. I have submitted a ticket to tech support.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 13:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1011706#M71167</guid>
      <dc:creator>ChristopherEby2</dc:creator>
      <dc:date>2020-12-22T13:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1082141#M73996</link>
      <description>&lt;P&gt;We are experiencing the same issue in versions 3.35 and 3.37 too using the same ESRI sample.&amp;nbsp;&lt;BR /&gt;Most of the machines are not able to reproduce (working as expected).&lt;/P&gt;&lt;P&gt;The machine on which it reproduces is using the latest Chrome(9&lt;SPAN&gt;2.0.4515.107&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;Reproducible on EDGE too on the same machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: When changed the API version to 3.30, it works as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 12:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1082141#M73996</guid>
      <dc:creator>MAYUR2812</dc:creator>
      <dc:date>2021-07-23T12:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1082197#M73999</link>
      <description>&lt;P&gt;The result of my support ticket with Esri was that they couldn't reproduce it on any of their machines so they closed the case.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 14:53:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1082197#M73999</guid>
      <dc:creator>ChristopherEby1</dc:creator>
      <dc:date>2021-07-23T14:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1082618#M74014</link>
      <description>&lt;P&gt;Thanks for the information. Looks like I will have to create a new ticket.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 07:04:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1082618#M74014</guid>
      <dc:creator>MAYUR2812</dc:creator>
      <dc:date>2021-07-26T07:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Extra Graphic Created by JavaScript 3.x API Draw Toolbar</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1302160#M81481</link>
      <description>&lt;P&gt;This has been showing up for one of our users as well, for a markup tool in another application that must use the Esri JavaScript API.&lt;/P&gt;&lt;P&gt;I've created a support ticket with Esri as well to see if the issue for the user can be resolved. Will update if any fixes are found, but seeing as I can't replicate the issue and that Esri might not be able to either - not sure what the fix may be.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/remove-extra-graphic-created-by-javascript-3-x-api/m-p/1302160#M81481</guid>
      <dc:creator>Henry</dc:creator>
      <dc:date>2023-06-22T18:22:10Z</dc:date>
    </item>
  </channel>
</rss>

