<?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 Re: How to reach 'measure-start', 'measure-end' events? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1056197#M73014</link>
    <description>&lt;P&gt;The 4.x Measure widget doesn't have events. Take a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/possible-events-for-new-measurement-widgets-4-10/m-p/278961" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/possible-events-for-new-measurement-widgets-4-10/m-p/278961&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 13:43:06 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2021-05-10T13:43:06Z</dc:date>
    <item>
      <title>How to reach 'measure-start', 'measure-end' events?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1056173#M73013</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to find the 'measure-start', 'measure-end' events that the new measurement widgets can have.&lt;/P&gt;&lt;P&gt;For example;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;measurement.on('measure-start', function (event) {
console.log(event);
});&lt;/LI-CODE&gt;&lt;P&gt;But&amp;nbsp;&lt;SPAN&gt;It doesn't work that way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1056173#M73013</guid>
      <dc:creator>nidaaktan</dc:creator>
      <dc:date>2021-05-10T12:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach 'measure-start', 'measure-end' events?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1056197#M73014</link>
      <description>&lt;P&gt;The 4.x Measure widget doesn't have events. Take a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/possible-events-for-new-measurement-widgets-4-10/m-p/278961" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/possible-events-for-new-measurement-widgets-4-10/m-p/278961&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 13:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1056197#M73014</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-05-10T13:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach 'measure-start', 'measure-end' events?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1584367#M86512</link>
      <description>&lt;P&gt;How would you then read out the current measurement distance/area from the tool? My case is that using "distance" we need to display the value somewhere else in the UI.&lt;BR /&gt;&lt;BR /&gt;I was hoping for something along the lines of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;useEffect(() =&amp;gt; {
    const measureTool = new Measurement({ linearUnit: 'metric', areaUnit: 'metric' });
    measureTool.on('measurement-update', (event: { distance: number }) =&amp;gt; {
      console.log(event.distance);
    });
    setMeasurement(measureTool);
    
  }, []);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Feb 2025 06:53:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-reach-measure-start-measure-end-events/m-p/1584367#M86512</guid>
      <dc:creator>EirikH</dc:creator>
      <dc:date>2025-02-12T06:53:33Z</dc:date>
    </item>
  </channel>
</rss>

