<?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: Edit Geometry of a Feature in Feature Layer without Editor Widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532791#M49669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveed, do you mean something like using the applyEdits() method of the FeatureLayer? If so, we have a sample for that from our 4.10 release:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/index.html"&gt;https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/index.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2019 19:01:50 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2019-04-03T19:01:50Z</dc:date>
    <item>
      <title>Edit Geometry of a Feature in Feature Layer without Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532790#M49668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this possible with JS API 4.x to edit geometry of a feature in a Feature Layer without using Editor Widget. Something like we are doing in 3.x in the sample below&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_feature_creation"&gt;https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_feature_creation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am asking this question because&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html" style="color: #0079c1; background-color: #ffffff; font-weight: 300; text-decoration: none;"&gt;SketchViewModel&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch.html" style="color: #0079c1; background-color: #f8f8f8; font-weight: 300; text-decoration: none;"&gt;Sketch&lt;/A&gt;&amp;nbsp;widgets work with GraphicsLayer. I will appreciate&amp;nbsp;the proposed solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 17:01:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532790#M49668</guid>
      <dc:creator>NaveedAhmed2</dc:creator>
      <dc:date>2019-04-02T17:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry of a Feature in Feature Layer without Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532791#M49669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveed, do you mean something like using the applyEdits() method of the FeatureLayer? If so, we have a sample for that from our 4.10 release:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/index.html"&gt;https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/index.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 19:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532791#M49669</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-04-03T19:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry of a Feature in Feature Layer without Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532792#M49670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noah,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply. I was&amp;nbsp;looking for to update features geometry instead of just updating&amp;nbsp;the attributes without using Editor widget of&amp;nbsp;4.x API. Since in 3.x we were using &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/draw-amd.html"&gt;Draw&amp;nbsp;&lt;/A&gt;widget to&amp;nbsp;update the geometry of a feature from Feature Layer and then we were saving these changes through applyEdits() as shown in the &lt;A href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=ed_feature_creation"&gt;sample&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/editing-applyedits/index.html"&gt;sample&lt;/A&gt; you are referring to only shows how we can just update the attributes of a feature through applyEdits(). I read the documentation of the 4.11 version of JSAPI and found that &lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fdevelopers.arcgis.com%2Fjavascript%2Flatest%2Fapi-reference%2Fesri-widgets-Sketch-SketchViewModel.html" rel="nofollow" style="color: #0079c1; background-color: #ffffff; border: 0px; font-weight: 300; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;SketchViewModel&lt;/A&gt;&amp;nbsp;works only for a GraphicsLayer and we cannot use it directly to modify the geometry of a feature in Feature Layer. So I modify the&amp;nbsp;code that&amp;nbsp;creates a temporary graphic in a Graphics Layer based on the feature that is desired to be moved (update its geometry) so that users can update the geometry of that graphics by selecting it. I am using applyEdits() to update that graphic back in the original&amp;nbsp;feature layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Codepen for the code can be referred at&amp;nbsp;&lt;A href="https://codepen.io/naveeed/pen/XQXdEe"&gt;https://codepen.io/naveeed/pen/XQXdEe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I believe this sample can be extended to polyline and polygon features as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;think this solves my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 20:29:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532792#M49670</guid>
      <dc:creator>NaveedAhmed2</dc:creator>
      <dc:date>2019-04-03T20:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry of a Feature in Feature Layer without Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532793#M49671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveed,&lt;/P&gt;&lt;P&gt;I'm intending to do what you was looking for (Updating the geometry (Shape) of a specific feature) and not only the attribute.&lt;/P&gt;&lt;P&gt;I've opened the link provided in your reply, I couldn't update any shape, I was only able to move point from a specific point to another.&lt;/P&gt;&lt;P&gt;Any suggestions please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2019 15:48:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532793#M49671</guid>
      <dc:creator>MohamadMousheimish1</dc:creator>
      <dc:date>2019-11-29T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Geometry of a Feature in Feature Layer without Editor Widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532794#M49672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohamad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry about the late response. I did not get a chance for a while to use this account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean that you are not able to access the codepen page below, although it is still working for me even I open it in the incognito window of my browser? You can also try it in other browsers, pc or incognito mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://codepen.io/naveeed/pen/XQXdEe" title="https://codepen.io/naveeed/pen/XQXdEe"&gt;https://codepen.io/naveeed/pen/XQXdEe&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you still have this problem.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 16:08:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-geometry-of-a-feature-in-feature-layer/m-p/532794#M49672</guid>
      <dc:creator>NaveedAhmed2</dc:creator>
      <dc:date>2019-12-13T16:08:18Z</dc:date>
    </item>
  </channel>
</rss>

