<?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.MOVE. How to trigger Edit.MOVE action without clicking on graphic??? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644431#M60115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this would work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Create a Graphic object for the point and display it on the Graphics layer&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Capture the GraphicsLayer's onMouseOver event to access the point&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Call the Edit Toolbar's activate() method, passing in the Graphic you created above: &lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var myEditor = esri.toolbars.Edit(map);
myEditor.activate(Edit.MOVE, graphic);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then capture the GraphicsLayer's onClick event, call myEditor.deactivate() and persist the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Lewin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:22:40 GMT</pubDate>
    <dc:creator>MarkLewin2</dc:creator>
    <dc:date>2021-12-12T03:22:40Z</dc:date>
    <item>
      <title>Edit.MOVE. How to trigger Edit.MOVE action without clicking on graphic???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644430#M60114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, suppose I have a point on the map and I want it to be moving along with mouse pointer when mouse pointer hovers it!! Is it possible? And it should stop moving when we click on it. I guess I should call some toolbar's method or manually trigger some graphic's event. Any suggestions, please?!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 18:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644430#M60114</guid>
      <dc:creator>D_R_</dc:creator>
      <dc:date>2012-04-27T18:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Edit.MOVE. How to trigger Edit.MOVE action without clicking on graphic???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644431#M60115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this would work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Create a Graphic object for the point and display it on the Graphics layer&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Capture the GraphicsLayer's onMouseOver event to access the point&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Call the Edit Toolbar's activate() method, passing in the Graphic you created above: &lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var myEditor = esri.toolbars.Edit(map);
myEditor.activate(Edit.MOVE, graphic);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then capture the GraphicsLayer's onClick event, call myEditor.deactivate() and persist the change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark Lewin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644431#M60115</guid>
      <dc:creator>MarkLewin2</dc:creator>
      <dc:date>2021-12-12T03:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Edit.MOVE. How to trigger Edit.MOVE action without clicking on graphic???</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644432#M60116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reply, but it doesn't work, because activate() method just makes graphic movable, but it doesn't trigger moving action. You have to click on the graphic in order to move it. And I want it to make movable on graphic hover!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Apr 2012 18:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-move-how-to-trigger-edit-move-action-without/m-p/644432#M60116</guid>
      <dc:creator>D_R_</dc:creator>
      <dc:date>2012-04-29T18:39:38Z</dc:date>
    </item>
  </channel>
</rss>

