<?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 ArcGIS JS API AreaMeasurement3D Result in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1250746#M80022</link>
    <description>&lt;P&gt;What events can be used to obtain the results measured by these tools, such as extent or area?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 12:56:10 GMT</pubDate>
    <dc:creator>Wade</dc:creator>
    <dc:date>2023-01-24T12:56:10Z</dc:date>
    <item>
      <title>ArcGIS JS API AreaMeasurement3D Result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1250746#M80022</link>
      <description>&lt;P&gt;What events can be used to obtain the results measured by these tools, such as extent or area?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 12:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1250746#M80022</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-01-24T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS API AreaMeasurement3D Result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1250891#M80035</link>
      <description>&lt;P&gt;This is a fun use case for using reactiveUtils.&lt;/P&gt;&lt;P&gt;The AreaMeasurement3D has an &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D.html#analysis" target="_blank" rel="noopener"&gt;analysis&lt;/A&gt; object with the geometry being drawn that you can watch for changes.&lt;/P&gt;&lt;P&gt;It also has a &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-AreaMeasurement3D-AreaMeasurement3DViewModel.html#measurement" target="_blank" rel="noopener"&gt;measurement&lt;/A&gt; object on the viewModel. So you can watch the area or the perimeterLength to get those values when using it. This is the displayed text for these, so not raw numbers, but looks like the results of the geometryEngine functions used on the analysis object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;watch(
    // watch for the analysis geometry to update
    () =&amp;gt; activeWidget.analysis?.geometry,
    () =&amp;gt; console.log("analysis", activeWidget.analysis)
);
when(
    // wait for the area text to be available
    () =&amp;gt; activeWidget.viewModel.measurement?.area.state === "available",
    () =&amp;gt; console.log(activeWidget.viewModel.measurement)
);
when(
    // wait for the perimeter text to be available
    () =&amp;gt; activeWidget.viewModel.measurement?.perimeterLength.state === "available"
    () =&amp;gt; console.log(activeWidget.viewModel.measurement)
);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;demo:&amp;nbsp;&lt;A href="https://codepen.io/odoe/pen/abjYLzy?editors=1000" target="_blank" rel="noopener"&gt;https://codepen.io/odoe/pen/abjYLzy?editors=1000&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 16:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1250891#M80035</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-01-24T16:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS JS API AreaMeasurement3D Result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1251135#M80044</link>
      <description>&lt;P&gt;Thanks, for this interesting use case using reactiveUtils .&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 04:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-js-api-areameasurement3d-result/m-p/1251135#M80044</guid>
      <dc:creator>Wade</dc:creator>
      <dc:date>2023-01-25T04:46:37Z</dc:date>
    </item>
  </channel>
</rss>

