<?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 Deactivate ESRI measurement widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75444#M6832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering if there is an easy way to deactivate/disable the measurement widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can see is clicking back onto the icon that was selected but this isn't that obvious for users so I would like to include a button to disable it (if identify / other tools are then activated).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a destroy method but I cannot seem to activate the tool after this, any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 May 2011 11:25:03 GMT</pubDate>
    <dc:creator>ChrisBuckmaster1</dc:creator>
    <dc:date>2011-05-24T11:25:03Z</dc:date>
    <item>
      <title>Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75444#M6832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am wondering if there is an easy way to deactivate/disable the measurement widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can see is clicking back onto the icon that was selected but this isn't that obvious for users so I would like to include a button to disable it (if identify / other tools are then activated).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a destroy method but I cannot seem to activate the tool after this, any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2011 11:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75444#M6832</guid>
      <dc:creator>ChrisBuckmaster1</dc:creator>
      <dc:date>2011-05-24T11:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75445#M6833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar question, after using the destroy method, I am unable to recreate the measurement widget.&amp;nbsp; Does anyone have an easy solution?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 16:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75445#M6833</guid>
      <dc:creator>DanielNieto_Jr</dc:creator>
      <dc:date>2011-05-31T16:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75446#M6834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We massively customized the Sample Viewer, so we reopen widgets alot.&amp;nbsp; ESRI does not seem to handle this the same way in all cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In particular, I have alot of issues with the ESRI dijits.&amp;nbsp; The legend, for example, destroys its container, and cant be reopened.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the measurement widget, i try just about everything to get it to "destroy" cleanly.&amp;nbsp; it would not. However, for some reason (the complete opposite of the legend dijit).&amp;nbsp; You dont have to destroy it.&amp;nbsp; (just never call the destroy method).&amp;nbsp; You can just close and reopen it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2011 19:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75446#M6834</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-05-31T19:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75447#M6835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have written the following hacked together function which will deactivate the measurement widget. Calling measurement.deactivate() will deselect any selected function and return to the usual map tools. Hope it's useful to others.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var measurement = new esri.dijit.Measurement({
&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map
}, dojo.byId('measurement'));

measurement.deactivate = function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var locationBtn = dijit.byId('location'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distanceBtn = dijit.byId('distance'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; areaBtn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = dijit.byId('area')
&amp;nbsp;&amp;nbsp;&amp;nbsp; this.closeTool();
&amp;nbsp;&amp;nbsp;&amp;nbsp; locationBtn.setAttribute('checked', false);
&amp;nbsp;&amp;nbsp;&amp;nbsp; distanceBtn.setAttribute('checked', false);
&amp;nbsp;&amp;nbsp;&amp;nbsp; areaBtn.setAttribute('checked', false);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:55:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75447#M6835</guid>
      <dc:creator>NeilGreatorex</dc:creator>
      <dc:date>2021-12-10T22:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75448#M6836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have written the following hacked together function which will deactivate the measurement widget. Calling measurement.deactivate() will deselect any selected function and return to the usual map tools. Hope it's useful to others.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var measurement = new esri.dijit.Measurement({
&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map
}, dojo.byId('measurement'));

measurement.deactivate = function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var locationBtn = dijit.byId('location'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distanceBtn = dijit.byId('distance'),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; areaBtn&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = dijit.byId('area')
&amp;nbsp;&amp;nbsp;&amp;nbsp; this.closeTool();
&amp;nbsp;&amp;nbsp;&amp;nbsp; locationBtn.setAttribute('checked', false);
&amp;nbsp;&amp;nbsp;&amp;nbsp; distanceBtn.setAttribute('checked', false);
&amp;nbsp;&amp;nbsp;&amp;nbsp; areaBtn.setAttribute('checked', false);
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Extra info in case you are interested. you can also do it&amp;nbsp; by the following.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;locationBtn.setActive(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;distanceBtn.setActive(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;areaBtn.setActive(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;setActive to false will deselect those button, therefore no action will be taken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:55:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75448#M6836</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-10T22:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75449#M6837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can also deactivate the tool after measuring:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; dojo.connect(measurement, "onMeasureEnd", function(activeTool,geometry){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; this.setTool(activeTool, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; });&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2012 15:10:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75449#M6837</guid>
      <dc:creator>GISAdmin1</dc:creator>
      <dc:date>2012-04-02T15:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75450#M6838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also seeing the similar issue. In my case, I have a function to switch map to load another AGS dynamic layer. After a map is destroyed and recreated, measurement widget loses all of its events such as onClick, onMeasureEnd and _switchUnit. Instead, it is showing "typeError: map.navigationManager is null" message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Destroying measurement widget and recreate causes function to bail out at startup() call. Skipping recreation and recreating events shows measurement panel, but does not activate measurement on button click.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 19:17:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75450#M6838</guid>
      <dc:creator>Shingo-Ikeda</dc:creator>
      <dc:date>2013-06-21T19:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75451#M6839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using 3.5?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 20:22:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75451#M6839</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-06-21T20:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75452#M6840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes. I am using the 3.5 and I noticed that when I was destroying the measure object, I was also removing the parent div as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;div id="floater"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;lt;div id="measureDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
meas = dijit.byId('measureTool');
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (meas) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; meas.destroy();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By placing the measureDiv again, I as able to restore the measure tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var measure = new esri.dijit.Measurement({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: currentmap,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: 'measureTool'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, dojo.create('measurement'));&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.place(measure.domNode,dojo.byId('measureDiv')); 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to the &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/42208-toggle-measurement-dijit-(startup-amp-destroy)" rel="nofollow noopener noreferrer" target="_blank"&gt;solution&lt;/A&gt;&lt;SPAN&gt; provided by Kelly @ esri. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;S&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/42208-toggle-measurement-dijit-(startup-amp-destroy)" rel="nofollow noopener noreferrer" target="_blank"&gt;http://forums.arcgis.com/threads/42208-toggle-measurement-dijit-(startup-amp-destroy)&lt;/A&gt;&lt;SPAN&gt;hingo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75452#M6840</guid>
      <dc:creator>Shingo-Ikeda</dc:creator>
      <dc:date>2021-12-10T22:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75453#M6841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for those who still haven't find any solution for this, and problems like that, here's what I've done.&lt;/P&gt;&lt;P&gt;you can simply simulate the CLICK trigger which deactivates the activated task, or whatever.&lt;/P&gt;&lt;P&gt;use dojo query to target the activated element, then .click() on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;measurementActiveButton = dojo.query(".esriMeasurement .esriButton.esriButtonChecked .dijitButtonNode")[0]
if(measurementActiveButton){
&amp;nbsp; measurementActiveButton.click();
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope you find it helpful.&lt;/P&gt;&lt;P&gt;cheers developers &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:55:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75453#M6841</guid>
      <dc:creator>behsoh</dc:creator>
      <dc:date>2021-12-10T22:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75454#M6842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works very well to deactivate the measure tool--I am trying to use it to deactivate the measure tool when an identify button is toggled. However, I'm getting some conflict with the identify handler I'm using. The code below starts and pauses the identify handler when the identify button is toggled (identify does not work and console prints out "Identify started" followed by "Identify paused". Can anyone see why this may be happening with the code posted below?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var idButton = new ToggleButton({&lt;BR /&gt; label: "Identifier les entités",&lt;BR /&gt; showLabel: false,&lt;BR /&gt; iconClass: "identifyIcon",&lt;BR /&gt; checked: false,&lt;BR /&gt; onChange: function (val) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (val) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window.idHandler = on.pausable(window.myMap, "click", runIdentifies); //runIdentifies is the identify function&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("Identify started");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; measurementActiveButton = dojo.query(".esriMeasurement .esriButton.esriButtonChecked .dijitButtonNode")[0]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(measurementActiveButton){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; measurementActiveButton.click();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; window.idHandler.pause();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log("Identify paused");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt; }&lt;BR /&gt; }, "id_button");&lt;BR /&gt; idButton.startup();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 01:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75454#M6842</guid>
      <dc:creator>Quynh_NhuMai</dc:creator>
      <dc:date>2017-02-18T01:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deactivate ESRI measurement widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75455#M6843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quynh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The way you have your code written the on event handler is added each time toggle is clicked on which results in multiple handlers being added. You need to have you code check for the existence of the window.idHandler and if it exists then do not recreate it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 20:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/deactivate-esri-measurement-widget/m-p/75455#M6843</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-18T20:23:08Z</dc:date>
    </item>
  </channel>
</rss>

