<?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: Forcing &amp;quot;Sketch&amp;quot;(rectangle) to an equal-sided Square in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1221133#M78982</link>
    <description>&lt;P&gt;Thanks.&amp;nbsp;&amp;nbsp; however my polygon/rectangle Sketch does not seem to be affected by the shift key?&amp;nbsp;&amp;nbsp; but I will look into it further.&amp;nbsp;&amp;nbsp; thankyou!&lt;/P&gt;&lt;P&gt;glayer = new GraphicsLayer();&lt;/P&gt;&lt;P&gt;const sketch = new Sketch({&lt;BR /&gt;layer: glayer,&lt;BR /&gt;view: view,&lt;BR /&gt;creationMode: "single",&lt;BR /&gt;availableCreateTools: ["point", "polyline", "rectangle"],&lt;BR /&gt;layout: "vertical",&lt;BR /&gt;label:"select a drawing tool for "&lt;BR /&gt;});&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 15:20:30 GMT</pubDate>
    <dc:creator>Paco</dc:creator>
    <dc:date>2022-10-12T15:20:30Z</dc:date>
    <item>
      <title>Forcing "Sketch"(rectangle) to an equal-sided Square</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1220863#M78968</link>
      <description>&lt;P&gt;Hello all!&amp;nbsp;&amp;nbsp;&amp;nbsp; wondering if there is a way to make the Sketch widget create an equal-sided Square, instead of a Rectangle?&amp;nbsp;&amp;nbsp; the rectangle selection mode works great,&amp;nbsp; but I need the selection to be a square.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;pvs&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 20:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1220863#M78968</guid>
      <dc:creator>Paco</dc:creator>
      <dc:date>2022-10-11T20:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing "Sketch"(rectangle) to an equal-sided Square</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1220920#M78970</link>
      <description>&lt;P&gt;I don't think there's a documented way to automate this, but the user can hold the Shift key down while drawing with the rectangle tool, and it will force a square.&amp;nbsp; This can be confirmed by using the Shift key in combination with the "Draw a rectangle" tool in &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/" target="_self"&gt;this sample&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 22:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1220920#M78970</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-10-11T22:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Forcing "Sketch"(rectangle) to an equal-sided Square</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1221133#M78982</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp;&amp;nbsp; however my polygon/rectangle Sketch does not seem to be affected by the shift key?&amp;nbsp;&amp;nbsp; but I will look into it further.&amp;nbsp;&amp;nbsp; thankyou!&lt;/P&gt;&lt;P&gt;glayer = new GraphicsLayer();&lt;/P&gt;&lt;P&gt;const sketch = new Sketch({&lt;BR /&gt;layer: glayer,&lt;BR /&gt;view: view,&lt;BR /&gt;creationMode: "single",&lt;BR /&gt;availableCreateTools: ["point", "polyline", "rectangle"],&lt;BR /&gt;layout: "vertical",&lt;BR /&gt;label:"select a drawing tool for "&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 15:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/forcing-quot-sketch-quot-rectangle-to-an-equal/m-p/1221133#M78982</guid>
      <dc:creator>Paco</dc:creator>
      <dc:date>2022-10-12T15:20:30Z</dc:date>
    </item>
  </channel>
</rss>

