<?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: Editor Dijit, how to move a point? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329222#M30458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;anyone? this is a huge stumbling block for us.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 May 2014 15:21:44 GMT</pubDate>
    <dc:creator>JeffPace</dc:creator>
    <dc:date>2014-05-12T15:21:44Z</dc:date>
    <item>
      <title>Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329219#M30455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, this should be simple. Using an editor widget.&amp;nbsp; I can place and reshape polygons.&amp;nbsp; I can place points.&amp;nbsp; But how do i move a point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/javascript/samples/ed_editing_widget/" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/samples/ed_editing_widget/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So place a point.&amp;nbsp; Then select it, then move it...how?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i must be missing something obvious&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 18:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329219#M30455</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-09T18:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329220#M30456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a sample that uses edit toolbar, which is a helper tools and that would allow to move points features&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/toolbar_edit.html"&gt;https://developers.arcgis.com/javascript/jssamples/toolbar_edit.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suba&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 23:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329220#M30456</guid>
      <dc:creator>SubaKrishnan</dc:creator>
      <dc:date>2014-05-09T23:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329221#M30457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It works for a point with text, but not just a point&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/ed_feature_creation.html"&gt;https://developers.arcgis.com/javascript/jssamples/ed_feature_creation.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. add point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Move point after added (impossible for me)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 00:00:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329221#M30457</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T00:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329222#M30458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;anyone? this is a huge stumbling block for us.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 15:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329222#M30458</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T15:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329223#M30459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think this is related to the symbol type... we did some work with editable FeatureLayers a while back, and found that the layer had to be fully refreshed before attempting to do anything else with a newly added feature. We were using the draw toolbar + TemplatePicker, not the Editor. So, in our (admittedly completely different) scenario, it went:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Apply edits&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Refresh the layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Use the ObjectID value from FeatureEditResult to query the [refreshed] dataset &amp;amp; select the new feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
featureLayer.applyEdits([newGraphic], null, null, function (res) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; // res is of type FeatureEditResult.
&amp;nbsp; // Need to query *again* to get the new object from its ID.
&amp;nbsp; // ORLY? YARLY.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; on.once(featureLayer, 'update-end', function(error, info){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new Query();
&amp;nbsp;&amp;nbsp;&amp;nbsp; query.objectIds = [res[0].objectId];

&amp;nbsp;&amp;nbsp;&amp;nbsp; featureLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, function (result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Your stuff here, or in the callback function.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (typeof(mycallbackfunction) == "function") {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return mycallbackfunction(newGraphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; });
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; // Fire the layer update.
&amp;nbsp; featureLayer.refresh();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's butchered from a module elsewhere, so I doubt it'll "just work" for you... In fact, looking at it now, I'm amazed it hasn't fallen over already. But still, try refreshing the layer &amp;amp; see where you get to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:35:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329223#M30459</guid>
      <dc:creator>BabbageOcelot</dc:creator>
      <dc:date>2021-12-11T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329224#M30460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after modifying the sample Suba provided to use a SimpleMarkerSymbol instead of a TextSymbol, i am able to select the existing point, see the cursor arrow become a hand, then drag the point to a new location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/jagravois/TQgJG/"&gt;http://jsfiddle.net/jagravois/TQgJG/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 16:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329224#M30460</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-05-12T16:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329225#M30461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, mine is a point graphic from a Feature Layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to stub up a fiddle, never done that before&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 16:48:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329225#M30461</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329226#M30462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try it in this sample.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/ed_editing_widget/"&gt;http://developers.arcgis.com/javascript/samples/ed_editing_widget/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But do not click to select.&amp;nbsp; Use the edit toolbar arrow tool to select.&amp;nbsp; We dont use popups, we use the attribute inspector in a separate div panel, so we have to use the tool to select.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you click and select, you get the hand and can move the point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use the toolbar tool to select, you never get the hand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 16:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329226#M30462</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T16:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329227#M30463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the clarification.&amp;nbsp; maybe i'm missing something, but i'd argue that this makes the behavior of the select tool in the editor toolbar the same for points as other geometry types, not different. (ie: when you 'select' a polygon you can't drag the entire feature around or automatically edit individual verticies either)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 17:02:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329227#M30463</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-05-12T17:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329228#M30464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok i understand that.&amp;nbsp; I tried a fiddle and moving points works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So now I am baffled. In my app I never get the hand. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I click on a point and it selects.&amp;nbsp; But i never get the hand to move.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 18:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329228#M30464</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329229#M30465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't add a layer as an editable feature layer after adding it (also) as a Dynamic Layer, it breaks the ability to move points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 18:21:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329229#M30465</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T18:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329230#M30466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i still dont see the problem in a version of that app thats adapted to use an ArcGISDynamicMapServiceLayer and FeatureLayer in selection mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/jagravois/HUKX2/"&gt;http://jsfiddle.net/jagravois/HUKX2/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 18:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329230#M30466</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-05-12T18:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Editor Dijit, how to move a point?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329231#M30467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;must just be a quirk of my application.&amp;nbsp; Appreciate all the help though!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 19:00:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/editor-dijit-how-to-move-a-point/m-p/329231#M30467</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-05-12T19:00:29Z</dc:date>
    </item>
  </channel>
</rss>

