<?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 Add/remove drawBox tools after creation in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1076667#M14567</link>
    <description>&lt;P&gt;I'm building a widget where the user should be able to draw custom areas/polygons. I use the DrawBox dijit and limit the tools to "POLYGON" and "EXTENT" on creation (declarativ creation).&lt;/P&gt;&lt;P&gt;My html tag looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='geoTypes:["POLYGON","EXTENT"],showClear:true,deactivateAfterDrawing:false' style="margin-top: 10px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far it's all good, but I also want to give the user the possibility to apply a buffer, and when the user checks a checkbox for applying buffer I want to modify the drawBox to allow the user to draw a polyline or point as well since the buffer will make it a polygon.&lt;BR /&gt;I've looked at the DrawBox.js and can't seem to find a suitable method for this, tried just change the value of this.drawBox.geoTypes but with no succes.&lt;/P&gt;&lt;P&gt;Anyone know if this is possible?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jul 2021 11:48:53 GMT</pubDate>
    <dc:creator>MattiasEkström</dc:creator>
    <dc:date>2021-07-08T11:48:53Z</dc:date>
    <item>
      <title>Add/remove drawBox tools after creation</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1076667#M14567</link>
      <description>&lt;P&gt;I'm building a widget where the user should be able to draw custom areas/polygons. I use the DrawBox dijit and limit the tools to "POLYGON" and "EXTENT" on creation (declarativ creation).&lt;/P&gt;&lt;P&gt;My html tag looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='geoTypes:["POLYGON","EXTENT"],showClear:true,deactivateAfterDrawing:false' style="margin-top: 10px;"&amp;gt;&amp;lt;/div&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far it's all good, but I also want to give the user the possibility to apply a buffer, and when the user checks a checkbox for applying buffer I want to modify the drawBox to allow the user to draw a polyline or point as well since the buffer will make it a polygon.&lt;BR /&gt;I've looked at the DrawBox.js and can't seem to find a suitable method for this, tried just change the value of this.drawBox.geoTypes but with no succes.&lt;/P&gt;&lt;P&gt;Anyone know if this is possible?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 11:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1076667#M14567</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-07-08T11:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add/remove drawBox tools after creation</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1076735#M14568</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6134"&gt;@MattiasEkström&lt;/a&gt;&amp;nbsp;After you have set the geoTypes in code then you just have to call the _initTypes() method on the drawBox.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1076735#M14568</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-07-08T14:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add/remove drawBox tools after creation</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1077123#M14569</link>
      <description>&lt;P&gt;Thanks Robert! It works great!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 06:19:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-remove-drawbox-tools-after-creation/m-p/1077123#M14569</guid>
      <dc:creator>MattiasEkström</dc:creator>
      <dc:date>2021-07-09T06:19:47Z</dc:date>
    </item>
  </channel>
</rss>

