<?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 Graphics Drawn with Draw Widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781068#M2598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup, I borrowed the code from it, but its doing something rather funny, perhaps you might know what it is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to edit the graphic (only able to edit vertices, the move, rotate, and scale options do not work),&lt;/P&gt;&lt;P&gt;I am using something along these lines (same as eDraw widget)&lt;/P&gt;&lt;P&gt;editorActivateGeometryEdit : function (graphic) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (!graphic)&lt;/P&gt;&lt;P&gt;&amp;nbsp; this.editorActivateSnapping(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (!graphic &amp;amp;&amp;amp; this._editorConfig["editToolbar"]) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; this._editorConfig["editToolbar"].deactivate();&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; var tool = 0 | Edit.MOVE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (graphic.geometry.type != "point")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; tool = tool | Edit.EDIT_VERTICES | Edit.SCALE | Edit.ROTATE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var options = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; allowAddVertices : true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; allowDeleteVertices : true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; uniformScaling : true&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; this._editorConfig["editToolbar"].activate(tool, graphic, options);&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am not able to actually rotate, move or scale, only move vertices,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably something stupidly simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help, let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Nov 2015 04:51:22 GMT</pubDate>
    <dc:creator>DouglasLong</dc:creator>
    <dc:date>2015-11-24T04:51:22Z</dc:date>
    <item>
      <title>Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781066#M2596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone have this done already?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified the Draw Widget, so that is it completely custom, and I have made it add the output to table of contents (Feature Layer),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyways, my question is, does anyone know how to make the graphics editable? (I am aware of a context menu, but just wondering if anyone has done it yet, I have seen it in the eDraw widget, but not the Draw widget)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Nov 2015 21:07:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781066#M2596</guid>
      <dc:creator>DouglasLong</dc:creator>
      <dc:date>2015-11-22T21:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781067#M2597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The eDraw is based off of the otb draw widget so should be able to borrow code from it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Nov 2015 21:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781067#M2597</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-22T21:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781068#M2598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup, I borrowed the code from it, but its doing something rather funny, perhaps you might know what it is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to edit the graphic (only able to edit vertices, the move, rotate, and scale options do not work),&lt;/P&gt;&lt;P&gt;I am using something along these lines (same as eDraw widget)&lt;/P&gt;&lt;P&gt;editorActivateGeometryEdit : function (graphic) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (!graphic)&lt;/P&gt;&lt;P&gt;&amp;nbsp; this.editorActivateSnapping(false);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (!graphic &amp;amp;&amp;amp; this._editorConfig["editToolbar"]) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; this._editorConfig["editToolbar"].deactivate();&lt;/P&gt;&lt;P&gt;&amp;nbsp; return;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; var tool = 0 | Edit.MOVE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (graphic.geometry.type != "point")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; tool = tool | Edit.EDIT_VERTICES | Edit.SCALE | Edit.ROTATE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var options = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; allowAddVertices : true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; allowDeleteVertices : true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; uniformScaling : true&lt;/P&gt;&lt;P&gt;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;&amp;nbsp; this._editorConfig["editToolbar"].activate(tool, graphic, options);&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I am not able to actually rotate, move or scale, only move vertices,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably something stupidly simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the help, let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 04:51:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781068#M2598</guid>
      <dc:creator>DouglasLong</dc:creator>
      <dc:date>2015-11-24T04:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781069#M2599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; So you are not getting the extent box around the geometry with handles for re-sizing and rotating? Like in this image?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="preview.jpg" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/147806_preview.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781069#M2599</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-24T13:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781070#M2600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly,I have been testing different things and I have only been able to edit vertices &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781070#M2600</guid>
      <dc:creator>DouglasLong</dc:creator>
      <dc:date>2015-11-24T14:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781071#M2601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do you mean something like this &lt;A href="http://timw1984.github.io/WebApp%20-%20AdvDraw/" title="http://timw1984.github.io/WebApp%20-%20AdvDraw/"&gt;ArcGIS Web Application&lt;/A&gt;&amp;nbsp; just right click the graphic you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the code here &lt;A href="https://community.esri.com/docs/DOC-3256"&gt;Enhanced Draw Widget&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:09:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781071#M2601</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-11-24T14:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781072#M2602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looks like your right, I originally had taken the code from the Draw Widget, and enhanced draw widget,&lt;/P&gt;&lt;P&gt;I am still somewhat puzzled why I can only use the Edit.MOVE_VERTICES handle in my code, but the move, rotate, and scale wont work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perhaps its because you have the OnOpen method and you set&lt;/P&gt;&lt;P&gt;var map = this.map;&lt;/P&gt;&lt;P&gt;editToolbar = new Edit(map);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where I have my editToolbar initialization in the PostCreate Method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will keep posted with any updates, but I am assuming this will solve my issue based on the code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 14:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781072#M2602</guid>
      <dc:creator>DouglasLong</dc:creator>
      <dc:date>2015-11-24T14:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781073#M2603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/43900"&gt;Tim Witt&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have any if you guys had luck with enabling the edit toolbar for operational layers?? (created via draw widget)? I have modified AdvDraw widget and Draw Widget, but still no luck for editing operational layers (created from graphics), editing graphics are no issue, just operational layers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 06:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781073#M2603</guid>
      <dc:creator>DouglasLong</dc:creator>
      <dc:date>2015-11-25T06:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781074#M2604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Douglas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; No I personally have not but I will do some testing when time permits and report back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2015 17:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781074#M2604</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2015-11-25T17:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Graphics Drawn with Draw Widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781075#M2605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved it, I basically figured out an alternative to updating the operational layers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this was solved by creating an edit button and save button in the widget&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;operational layer can't be edited therefore&lt;/LI&gt;&lt;LI&gt;built edit button that calls function that removes operation layer, and clears graphics layer&lt;/LI&gt;&lt;LI&gt;left over with a graphic, that user can now edit (editing graphics is stupid easy)&lt;/LI&gt;&lt;LI&gt;when user hits save, it syncs the newly edited graphic to the operational layers of the map&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Nov 2015 08:06:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/edit-graphics-drawn-with-draw-widget/m-p/781075#M2605</guid>
      <dc:creator>DouglasLong</dc:creator>
      <dc:date>2015-11-26T08:06:52Z</dc:date>
    </item>
  </channel>
</rss>

