<?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 Draw Widget - How to save drawing in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32981#M877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the draw widget to my map.&amp;nbsp; The drawing functions work fine on the published app, but there is no way to save the drawing.&amp;nbsp; How do I do this?&amp;nbsp; I want to be able to send a link to someone of the map, and for them to mark on an area, save that area, and for me to open the map and see that area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Dec 2017 11:59:15 GMT</pubDate>
    <dc:creator>MARTINWILSON1</dc:creator>
    <dc:date>2017-12-13T11:59:15Z</dc:date>
    <item>
      <title>Draw Widget - How to save drawing</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32981#M877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have added the draw widget to my map.&amp;nbsp; The drawing functions work fine on the published app, but there is no way to save the drawing.&amp;nbsp; How do I do this?&amp;nbsp; I want to be able to send a link to someone of the map, and for them to mark on an area, save that area, and for me to open the map and see that area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 11:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32981#M877</guid>
      <dc:creator>MARTINWILSON1</dc:creator>
      <dc:date>2017-12-13T11:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Widget - How to save drawing</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32982#M878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You should look at the Enhanced Draw custom widget then:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/magis-nc/esri-webappbuilder-widget-eDraw" title="https://github.com/magis-nc/esri-webappbuilder-widget-eDraw"&gt;GitHub - magis-nc/esri-webappbuilder-widget-eDraw: Ehanced draw widget for WebApp Builder for Arcgis.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Demo site:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://apps.magis.nc/maps/wab-widgets/?extent=17918900%2C-2706198%2C19092972%2C-2154016%2C102100" title="http://apps.magis.nc/maps/wab-widgets/?extent=17918900%2C-2706198%2C19092972%2C-2154016%2C102100"&gt;ArcGIS Web Application&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 14:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32982#M878</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-13T14:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Widget - How to save drawing</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32983#M879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I dit not use&amp;nbsp;eDraw, because I don't really like it/don't want this layers structure.&lt;BR /&gt;I'ts probably similar, but I did as follows&amp;nbsp;in the &lt;STRONG&gt;standard Draw Widget&lt;/STRONG&gt;, in order to save and load a drawing (to/from file):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var graphics = this._getAllGraphics();&lt;BR /&gt; &lt;BR /&gt; var jsonString = "[";&lt;BR /&gt; array.forEach(graphics, lang.hitch(this, function(g){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;jsonString = jsonString + "{\"geotype\":\"" + g.geometry.geoType + "\",\"graphic\":" + jsonRef.toJson(g.toJson()) + "},";&lt;BR /&gt; })); &lt;BR /&gt; jsonString = jsonString.substring(0, jsonString.length - 1) + "]";&lt;BR /&gt; &lt;BR /&gt; var filename = "Drawing.json"; &lt;BR /&gt; return CSVUtils._download(filename, jsonString);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;jsonRef refers to 'dojox/json/ref' and&amp;nbsp;CSVUtils to&amp;nbsp;'jimu/CSVUtils'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to import a JSON string/file:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var objects = jsonRef.fromJson(evt.target.result);&lt;BR /&gt; for(var i = 0; i &amp;lt; objects.length; i++) {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var parsedGraphic = new Graphic(objects&lt;I&gt;.graphic);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;var geoType = objects&lt;I&gt;.geotype;&lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;this._onDrawEnd(parsedGraphic, geoType, null);&lt;BR /&gt; }&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;evt.target.result comes for a Reader object (onload event)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/32983#M879</guid>
      <dc:creator>GeoguichetGeoguichet</dc:creator>
      <dc:date>2020-10-08T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Draw Widget - How to save drawing</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/1309113#M23120</link>
      <description>&lt;P&gt;did this work for you? I am also looking to export or share the drawing (viewer license). Is it possible or only for creator locense?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:15:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/draw-widget-how-to-save-drawing/m-p/1309113#M23120</guid>
      <dc:creator>Ali_AbbasWajid</dc:creator>
      <dc:date>2023-07-18T15:15:17Z</dc:date>
    </item>
  </channel>
</rss>

