<?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 Editing - move point to XY coordinate... in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232986#M21747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone post a code sample that would allow editing of point data by moving existing (selected) point and moving it to user specified coordinates?&amp;nbsp; The workflow would basically allow the user to "correct" the point location by specifying lat/long coordinates.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; User selects point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; User inputs Latitude and Longitude into text boxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; User clicks a submit button which permanently moves the point using the editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've successfully done something similar by grabbing attributes from existing point layer, drawing a new graphic based on user defined Lat/Long, appending point attributes to graphic, and then execute a geoprocessing service creating a new layer.&amp;nbsp; I'm hoping to streamline the workflow by just using the editor widget directly...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a bunch,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Aug 2013 21:14:40 GMT</pubDate>
    <dc:creator>KenMorefield</dc:creator>
    <dc:date>2013-08-15T21:14:40Z</dc:date>
    <item>
      <title>Editing - move point to XY coordinate...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232986#M21747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone post a code sample that would allow editing of point data by moving existing (selected) point and moving it to user specified coordinates?&amp;nbsp; The workflow would basically allow the user to "correct" the point location by specifying lat/long coordinates.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; User selects point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; User inputs Latitude and Longitude into text boxes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; User clicks a submit button which permanently moves the point using the editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've successfully done something similar by grabbing attributes from existing point layer, drawing a new graphic based on user defined Lat/Long, appending point attributes to graphic, and then execute a geoprocessing service creating a new layer.&amp;nbsp; I'm hoping to streamline the workflow by just using the editor widget directly...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a bunch,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 21:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232986#M21747</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2013-08-15T21:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Editing - move point to XY coordinate...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232987#M21748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To my understanding, Editor dijit and Edit toolbar are mainly designed to allow the users to interact with the edit, meaning user click to add a new feature or click on an existing feature and drag to move a new location. In your case, the user needs not to change the location manually. I don't think using Editor dijit and/or Edit toolbar is needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can do is to create a feature layer that will be edited. Then as you mentioned in the workflow, select an existing feature, then in the callback function. Below code is using dojo/on event. To use dojo.connect, follow the legacy way mentioned in the api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;featLayer.on("click", function(response) {
[INDENT]var geom = response.graphic.geometry;
geom.setLatitude(lat);
geom.setLongitude(lon);

featLayer.applyEdits(null, [response.graphic], null);[/INDENT]
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:47:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232987#M21748</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2021-12-11T11:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Editing - move point to XY coordinate...</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232988#M21749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jason!&amp;nbsp; I'll give that a try tomorrow and post back with the results...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ken&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 22:27:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editing-move-point-to-xy-coordinate/m-p/232988#M21749</guid>
      <dc:creator>KenMorefield</dc:creator>
      <dc:date>2013-08-15T22:27:19Z</dc:date>
    </item>
  </channel>
</rss>

