<?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 About ESRI’ s drawing widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768092#M1363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once the drawing widget is open, even without doing anything, a layer will be added to the operational list in the Layer List widget. But I don’t want this layer to add if a user does nothing; I only want this result layer added when a user draws something in the widget. Can we adjust something here? I found a function that should control this, called&amp;nbsp; _pushAddOperation: function(graphics){ ….} in line 844 at the widget.js&amp;nbsp;&amp;nbsp; But have no clue how to change it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2016 15:22:56 GMT</pubDate>
    <dc:creator>LeiZhou1</dc:creator>
    <dc:date>2016-05-05T15:22:56Z</dc:date>
    <item>
      <title>About ESRI’ s drawing widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768092#M1363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once the drawing widget is open, even without doing anything, a layer will be added to the operational list in the Layer List widget. But I don’t want this layer to add if a user does nothing; I only want this result layer added when a user draws something in the widget. Can we adjust something here? I found a function that should control this, called&amp;nbsp; _pushAddOperation: function(graphics){ ….} in line 844 at the widget.js&amp;nbsp;&amp;nbsp; But have no clue how to change it. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 15:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768092#M1363</guid>
      <dc:creator>LeiZhou1</dc:creator>
      <dc:date>2016-05-05T15:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: About ESRI’ s drawing widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768093#M1364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; That function _pushAddOperation has nothing to do with the layer getting added to the Layer list widget. You need to look at the _initLayers function. I have to say your not wanting the layers added until there are graphics added is very much against the norm. Almost all widget that I know of add layer to the map at startup. I guess you can call _initLayers when some graphic is being added and then add some logic to the function to say that it has been called already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 01:15:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768093#M1364</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-05-06T01:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: About ESRI’ s drawing widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768094#M1365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, ESRI also said it may be against the basic rules. Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 03:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/about-esri-s-drawing-widget/m-p/768094#M1365</guid>
      <dc:creator>LeiZhou1</dc:creator>
      <dc:date>2016-05-11T03:58:06Z</dc:date>
    </item>
  </channel>
</rss>

