<?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 Measurement Widget snapping error (API 4.34) in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-snapping-error-api-4-34/m-p/1673535#M87976</link>
    <description>&lt;P&gt;The snappingOptions property for the active tool of the measurement widget is still in beta.&lt;/P&gt;&lt;P&gt;I'm using API version 4.34 and Calcite 3.3.3.&lt;BR /&gt;&lt;BR /&gt;When the snappingOptions is enabled for area measurement, the following error pops up as soon as the polygon drawing is more than two vertices.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FC_Basson_0-1765962772519.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/145707i13B8DD250A72FBBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FC_Basson_0-1765962772519.png" alt="FC_Basson_0-1765962772519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tested this on the measurement widget &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement/" target="_self"&gt;sample code&lt;/A&gt;.&amp;nbsp; This is how I am activating the snapping options:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;reactiveUtils.when(
      () =&amp;gt; measurement.viewModel.state == 'ready' &amp;amp;&amp;amp; measurement.activeTool == 'area',
      () =&amp;gt; {
         
         measurement.activeWidget.snappingOptions = {
          enabled: true,
          featureSources: [
            {
              layer: featureLayer,
              enabled: true
            }
          ]
        }
      });&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The error only occurs for area measurement and not for distance measurement.&amp;nbsp; Is there another way of setting the snapping options, or could this be a bug?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Dec 2025 09:21:59 GMT</pubDate>
    <dc:creator>FC_Basson</dc:creator>
    <dc:date>2025-12-17T09:21:59Z</dc:date>
    <item>
      <title>Measurement Widget snapping error (API 4.34)</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-snapping-error-api-4-34/m-p/1673535#M87976</link>
      <description>&lt;P&gt;The snappingOptions property for the active tool of the measurement widget is still in beta.&lt;/P&gt;&lt;P&gt;I'm using API version 4.34 and Calcite 3.3.3.&lt;BR /&gt;&lt;BR /&gt;When the snappingOptions is enabled for area measurement, the following error pops up as soon as the polygon drawing is more than two vertices.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FC_Basson_0-1765962772519.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/145707i13B8DD250A72FBBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FC_Basson_0-1765962772519.png" alt="FC_Basson_0-1765962772519.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also tested this on the measurement widget &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-measurement/" target="_self"&gt;sample code&lt;/A&gt;.&amp;nbsp; This is how I am activating the snapping options:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;reactiveUtils.when(
      () =&amp;gt; measurement.viewModel.state == 'ready' &amp;amp;&amp;amp; measurement.activeTool == 'area',
      () =&amp;gt; {
         
         measurement.activeWidget.snappingOptions = {
          enabled: true,
          featureSources: [
            {
              layer: featureLayer,
              enabled: true
            }
          ]
        }
      });&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;The error only occurs for area measurement and not for distance measurement.&amp;nbsp; Is there another way of setting the snapping options, or could this be a bug?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 09:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/measurement-widget-snapping-error-api-4-34/m-p/1673535#M87976</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2025-12-17T09:21:59Z</dc:date>
    </item>
  </channel>
</rss>

