<?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 bug in draw tool (Draw.POLYGON) ESRI JS API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-draw-tool-draw-polygon-esri-js-api/m-p/107625#M9991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using&amp;nbsp; esri/toolbars/draw, this is what happened if the drawing feature used is a polygon Ex. toolbar.activate(Draw.POLYGON)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once activated the toolbar, on mouse down you start drawing, and with each click you shape the polygon at will. But if in the second click, where you have drawn a line and not a polygon yet, you decide to double-click instead of one click, then the toolbar stop drawing, and draw-end fires, however the result geometry is not a polygon as this feature expect, it is a line in this case. Then you get an error (see image )&lt;A href="https://community.esri.com/legacyfs/online/63119_Capture.PNG"&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" height="157" src="https://community.esri.com/legacyfs/online/63119_Capture.PNG" style="width: 620px; height: 126px;" width="775" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this should be an error. &lt;/P&gt;&lt;P&gt;Is there anyway i cant prevent this error from showing up in the console?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Feb 2015 17:20:30 GMT</pubDate>
    <dc:creator>Roy_A_Justo</dc:creator>
    <dc:date>2015-02-18T17:20:30Z</dc:date>
    <item>
      <title>bug in draw tool (Draw.POLYGON) ESRI JS API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-draw-tool-draw-polygon-esri-js-api/m-p/107625#M9991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using&amp;nbsp; esri/toolbars/draw, this is what happened if the drawing feature used is a polygon Ex. toolbar.activate(Draw.POLYGON)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once activated the toolbar, on mouse down you start drawing, and with each click you shape the polygon at will. But if in the second click, where you have drawn a line and not a polygon yet, you decide to double-click instead of one click, then the toolbar stop drawing, and draw-end fires, however the result geometry is not a polygon as this feature expect, it is a line in this case. Then you get an error (see image )&lt;A href="https://community.esri.com/legacyfs/online/63119_Capture.PNG"&gt;&lt;IMG alt="Capture.PNG" class="image-1 jive-image" height="157" src="https://community.esri.com/legacyfs/online/63119_Capture.PNG" style="width: 620px; height: 126px;" width="775" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this should be an error. &lt;/P&gt;&lt;P&gt;Is there anyway i cant prevent this error from showing up in the console?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 17:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-in-draw-tool-draw-polygon-esri-js-api/m-p/107625#M9991</guid>
      <dc:creator>Roy_A_Justo</dc:creator>
      <dc:date>2015-02-18T17:20:30Z</dc:date>
    </item>
  </channel>
</rss>

