<?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: Unable to transform rectangle using SketchViewModel in SceneView in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1110270#M75058</link>
    <description>&lt;P&gt;That was it! Thank you so much!&lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2021 14:54:29 GMT</pubDate>
    <dc:creator>avecchi</dc:creator>
    <dc:date>2021-10-22T14:54:29Z</dc:date>
    <item>
      <title>Unable to transform rectangle using SketchViewModel in SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1109833#M75052</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to draw a rectangle on a SceneView with SketchViewModel and have it be scaleable as in this example:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sketch-geometries/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When I attempt to use the "transform" tool on the graphic in my SceneView, the scaling handles do not appear.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sketchrectangle.gif" style="width: 600px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25777i1D597428F1546883/image-size/large?v=v2&amp;amp;px=999" role="button" title="sketchrectangle.gif" alt="sketchrectangle.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On the example, I can transform like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sketchrectanglecorrect.gif" style="width: 600px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/25780iDD436EBA5410E7F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="sketchrectanglecorrect.gif" alt="sketchrectanglecorrect.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the code I'm using:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const graphicsLayer = new modules.GraphicsLayer()

view.map.layers.add(graphicsLayer)

const sketch = new SketchViewModel({ view, layer: graphicsLayer, defaultUpdateOptions: { tool: 'transform' } })

const polygonSymbol = {
  type: 'simple-fill',
  color: [150, 150, 150, 0.2],
  outline: {
    color: [255, 0, 0],
    width: 2
  }
}

sketch.set('polygonSymbol', polygonSymbol)
sketch.create('rectangle', { hasZ: false })&lt;/LI-CODE&gt;&lt;P&gt;Is there something I'm missing?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1109833#M75052</guid>
      <dc:creator>avecchi</dc:creator>
      <dc:date>2021-10-21T17:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to transform rectangle using SketchViewModel in SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1109910#M75053</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/467845"&gt;@avecchi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Could you please provide a codepen or something similar to view a test app that reproduces this issue? I was unable to reproduce this with the code you provided and I tested with versions 4.19 - 4.21. What version of the JSAPI are you seeing this, and have you tested with different versions of the API and are able to reproduce as well?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 19:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1109910#M75053</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-10-21T19:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to transform rectangle using SketchViewModel in SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1110125#M75056</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/467845"&gt;@avecchi&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;The "transform" behavior got changed with introducing "Line and polygon transformations" in 4.19 for 3D. This was not possible with 3D before but in 2D. Check also the release notes:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/4.19/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/4.19/&lt;/A&gt;.&lt;BR /&gt;So it looks like you are working with 4.18 or below?&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;BR /&gt;Sascha&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 05:53:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1110125#M75056</guid>
      <dc:creator>SaschaBrunnerCH</dc:creator>
      <dc:date>2021-10-22T05:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to transform rectangle using SketchViewModel in SceneView</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1110270#M75058</link>
      <description>&lt;P&gt;That was it! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 14:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-transform-rectangle-using/m-p/1110270#M75058</guid>
      <dc:creator>avecchi</dc:creator>
      <dc:date>2021-10-22T14:54:29Z</dc:date>
    </item>
  </channel>
</rss>

