<?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 get the geometry of measurement Widget 4.26 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-geometry-of-measurement-widget-4-26/m-p/1295464#M81297</link>
    <description>&lt;P&gt;There is no documented way to get a reference to the geometry.&amp;nbsp; However, if you're working in 2D (i.e. with a MapView), this presently works:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;measurement.watch("viewModel.state", function (newValue, oldValue, propertyName, target) {
	if (newValue == "measured") {
		var geometry = target.viewModel.activeViewModel.tool._measurementLayer.graphics.getItemAt(0).geometry;
	}
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 18:02:20 GMT</pubDate>
    <dc:creator>JoelBennett</dc:creator>
    <dc:date>2023-06-02T18:02:20Z</dc:date>
    <item>
      <title>How to get the geometry of measurement Widget 4.26</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-geometry-of-measurement-widget-4-26/m-p/1293996#M81273</link>
      <description>&lt;P&gt;measurement.watch("viewModel.state", function (state) {&lt;BR /&gt;console.log("Current state: ", state);&lt;BR /&gt;&amp;nbsp;if (state == "measured") {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT face="times new roman,times" size="6" color="#FF0000"&gt;&lt;STRONG&gt; &amp;nbsp;//here i want to get the geometry off added graphics by active measurement tool.please help.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 12:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-geometry-of-measurement-widget-4-26/m-p/1293996#M81273</guid>
      <dc:creator>Nadir_Hussain</dc:creator>
      <dc:date>2023-05-30T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the geometry of measurement Widget 4.26</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-geometry-of-measurement-widget-4-26/m-p/1295464#M81297</link>
      <description>&lt;P&gt;There is no documented way to get a reference to the geometry.&amp;nbsp; However, if you're working in 2D (i.e. with a MapView), this presently works:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;measurement.watch("viewModel.state", function (newValue, oldValue, propertyName, target) {
	if (newValue == "measured") {
		var geometry = target.viewModel.activeViewModel.tool._measurementLayer.graphics.getItemAt(0).geometry;
	}
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 18:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-the-geometry-of-measurement-widget-4-26/m-p/1295464#M81297</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-06-02T18:02:20Z</dc:date>
    </item>
  </channel>
</rss>

