<?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 toolbar on style event not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-toolbar-on-style-event-not-working/m-p/662452#M61792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having issues migrating to on style events for draw toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not register an event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var on = app.map.drawToolbar.on('draw-end', function(evt) { &amp;nbsp; on.remove(); &amp;nbsp; //do stuff blah blah blah });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;It works on the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html" rel="nofollow" target="_blank"&gt;sample&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had no problems with on style events with dojo and other esri objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var on = layer.on('load', function() { &amp;nbsp; on.remove(); &amp;nbsp; //do stuff blah blah blah });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 18:04:46 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2013-08-22T18:04:46Z</dc:date>
    <item>
      <title>draw toolbar on style event not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-toolbar-on-style-event-not-working/m-p/662452#M61792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having issues migrating to on style events for draw toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not register an event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var on = app.map.drawToolbar.on('draw-end', function(evt) { &amp;nbsp; on.remove(); &amp;nbsp; //do stuff blah blah blah });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;It works on the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html" rel="nofollow" target="_blank"&gt;sample&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had no problems with on style events with dojo and other esri objects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var on = layer.on('load', function() { &amp;nbsp; on.remove(); &amp;nbsp; //do stuff blah blah blah });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 18:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-toolbar-on-style-event-not-working/m-p/662452#M61792</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2013-08-22T18:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: draw toolbar on style event not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-toolbar-on-style-event-not-working/m-p/662453#M61793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Draw toolbar returns a different object for on than it does with connect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: the draw toolbar api ref is missing events sections.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 18:18:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/draw-toolbar-on-style-event-not-working/m-p/662453#M61793</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2013-08-22T18:18:29Z</dc:date>
    </item>
  </channel>
</rss>

