<?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 Reactivating measurement widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reactivating-measurement-widget/m-p/515007#M48054</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Recently I have been working on a web page that adds a location with a mouse driven event. However they also want to add the measurement widget. I have figured out how to stop the one click event However I am not sure what the best ways to stop and reactivate the measurement widget are. Below I have figured out how to do most of the switching with buttons. However the destroy method for measurement seems to cause issues when I want to start it up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is all that should be necessary for an example of what I am trying to accomplish. but if more is necessary please let me know&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;button id="measure"&amp;nbsp; style=" margin-left:20px " onClick="handle.pause(); measurement.startup(); measurement.show(); console.log('measure');"&amp;gt;Measure&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;button id="stopmeasure" style=" margin-left:10px " onClick="handle.resume(); measurement.destroy(); measurement.hide(); console.log('stop measuring');"&amp;gt;Stop Measuring&amp;lt;/button&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 18:54:44 GMT</pubDate>
    <dc:creator>EvanKarmazin</dc:creator>
    <dc:date>2013-06-06T18:54:44Z</dc:date>
    <item>
      <title>Reactivating measurement widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reactivating-measurement-widget/m-p/515007#M48054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Recently I have been working on a web page that adds a location with a mouse driven event. However they also want to add the measurement widget. I have figured out how to stop the one click event However I am not sure what the best ways to stop and reactivate the measurement widget are. Below I have figured out how to do most of the switching with buttons. However the destroy method for measurement seems to cause issues when I want to start it up again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think this is all that should be necessary for an example of what I am trying to accomplish. but if more is necessary please let me know&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;button id="measure"&amp;nbsp; style=" margin-left:20px " onClick="handle.pause(); measurement.startup(); measurement.show(); console.log('measure');"&amp;gt;Measure&amp;lt;/button&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;button id="stopmeasure" style=" margin-left:10px " onClick="handle.resume(); measurement.destroy(); measurement.hide(); console.log('stop measuring');"&amp;gt;Stop Measuring&amp;lt;/button&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 18:54:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/reactivating-measurement-widget/m-p/515007#M48054</guid>
      <dc:creator>EvanKarmazin</dc:creator>
      <dc:date>2013-06-06T18:54:44Z</dc:date>
    </item>
  </channel>
</rss>

