<?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: EditTool and Extent in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275257#M6464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sarthak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did something similar to your suggestion, using a Polyline. It would be nice to have the EditTool work with the Extent geometries. Thanks again for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernadette&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Aug 2010 12:14:02 GMT</pubDate>
    <dc:creator>BernadetteSorenson</dc:creator>
    <dc:date>2010-08-09T12:14:02Z</dc:date>
    <item>
      <title>EditTool and Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275253#M6460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the DrawTool to draw an Extent object on the map. When I attempt to move the Extent graphic using EditTool, the graphic won't move. I understand that some of the Extent properties are read only, but I was wondering if anyone has any advice on what to do.&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 12:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275253#M6460</guid>
      <dc:creator>BernadetteSorenson</dc:creator>
      <dc:date>2010-08-05T12:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool and Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275254#M6461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How are you 'activating' the EditTool on the newly created extent? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how it should be done:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// ActionScript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myEditTool : EditTool = new EditTool(myMap)&amp;nbsp; // make sure you pass in the map object
myEditTool.activate(EditTool.MOVE, [myGraphic]);

//where myGraphic is the newly created graphic(in your case with an extent geometry) &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// MXML and Actionscript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;lt;!-- EditTool, again making sure you pass in the map object --&amp;gt;
&amp;lt;esri:EditTool id="myEditTool" map="{myMap}"/&amp;gt;

myEditTool.activate(EditTool.MOVE, [myGraphic]);&amp;nbsp; 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look at : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tools/EditTool.html#activate()" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tools/EditTool.html#activate()&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lemme know if that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275254#M6461</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2021-12-11T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool and Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275255#M6462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I am activating the edit tool:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mapEditTool.activate(EditTool.MOVE|EditTool.EDIT_VERTICES, [Graphic(event.target)]); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I've tested it with Polyline, Polygon and Extent. My Extent object is the only one that won't work with the EditTool.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Aug 2010 16:03:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275255#M6462</guid>
      <dc:creator>BernadetteSorenson</dc:creator>
      <dc:date>2010-08-05T16:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool and Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275256#M6463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Bernadette,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes you are right, It looks like the EditTool does not work with Extent geometries for now. It expects the geometry to be either point, line or polygon. I will push in a fix for this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For the time being as a workaround, try converting your extent to a polygon before passing it to the EditTool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var extent : Extent =&amp;nbsp; Graphic(event.target).geometry as Extent;

const arrPoints:Array = [
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(extent.xmin, extent.ymin),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(extent.xmin, extent.ymax),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(extent.xmax, extent.ymax),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(extent.xmax, extent.ymin),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new MapPoint(extent.xmin, extent.ymin)
];

var polygon:Polygon = new Polygon();
polygon.addRing(arrPoints);
polygon.spatialReference = extent.spatialReference;

Graphic(event.target).geometry = polygon;

mapEditTool.activate(EditTool.MOVE|EditTool.EDIT_V ERTICES, [Graphic(event.target)]); &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lemme know if this works for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:25:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275256#M6463</guid>
      <dc:creator>SarthakDatt</dc:creator>
      <dc:date>2021-12-11T13:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: EditTool and Extent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275257#M6464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sarthak,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did something similar to your suggestion, using a Polyline. It would be nice to have the EditTool work with the Extent geometries. Thanks again for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernadette&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Aug 2010 12:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/edittool-and-extent/m-p/275257#M6464</guid>
      <dc:creator>BernadetteSorenson</dc:creator>
      <dc:date>2010-08-09T12:14:02Z</dc:date>
    </item>
  </channel>
</rss>

