<?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: Drawing polygon: behavior changed in v4.30 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1581413#M86453</link>
    <description>&lt;P&gt;I see what you're talking about.&amp;nbsp; I use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html" target="_self"&gt;SketchViewModel&lt;/A&gt; in our applications to support user-drawn geometries, and it doesn't exhibit this behavior.&amp;nbsp; Perhaps your workflows are such that you could use it as an alternative to the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html" target="_self"&gt;Draw&lt;/A&gt; module.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 18:15:59 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2025-02-03T18:15:59Z</dc:date>
    <item>
      <title>Drawing polygon: behavior changed in v4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1579521#M86435</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have witnessed a changed in behavior between v4.29 and v4.30, if I try to draw a Polygon in 4.29, if there is only 2 vertices it draws a line between the 2 points.&lt;/P&gt;&lt;P&gt;In v4.30, it draws a point at equidistant from the 2 points.&lt;/P&gt;&lt;P&gt;You can test it here in 4.29, if you change the api to 4.30 you will see the difference&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/BigTurtle/pen/PwYVYWN" target="_blank"&gt;https://codepen.io/BigTurtle/pen/PwYVYWN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can fix that by drawing a polyline instead of a polygon when there are 2 vertices but I would prefer just using polygon.&lt;/P&gt;&lt;P&gt;What do you think?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1579521#M86435</guid>
      <dc:creator>LittleTurtle</dc:creator>
      <dc:date>2025-01-28T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing polygon: behavior changed in v4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1581413#M86453</link>
      <description>&lt;P&gt;I see what you're talking about.&amp;nbsp; I use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html" target="_self"&gt;SketchViewModel&lt;/A&gt; in our applications to support user-drawn geometries, and it doesn't exhibit this behavior.&amp;nbsp; Perhaps your workflows are such that you could use it as an alternative to the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-draw-Draw.html" target="_self"&gt;Draw&lt;/A&gt; module.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 18:15:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1581413#M86453</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2025-02-03T18:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing polygon: behavior changed in v4.30</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1581680#M86456</link>
      <description>&lt;P&gt;Hello Joel, right now I've decided to stay with the Draw module and to simply draw a line when there is under 2 points in the graphic ; but I think you are right, SketchViewModel is the preferable way to do it.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 09:35:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/drawing-polygon-behavior-changed-in-v4-30/m-p/1581680#M86456</guid>
      <dc:creator>LittleTurtle</dc:creator>
      <dc:date>2025-02-04T09:35:36Z</dc:date>
    </item>
  </channel>
</rss>

