<?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 Problem using alwaysSnap from SnappingManager on custom widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-using-alwayssnap-from-snappingmanager-on/m-p/468781#M43467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble using the SnappingManager of the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom widget in which the user create features in 2 layers of the map. What I need is&amp;nbsp;when creating a polyline feature,&amp;nbsp;it&amp;nbsp;starts connected to other pre-existing feature of the same layer, so I'm trying to enable the snapping tool to&amp;nbsp;work all time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the API reference, doing this code would work, and the snapping tool would be working all time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; _snapManager &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;enableSnapping&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
&lt;SPAN class="string token"&gt;"alwaysSnap"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically the snapping tool is enabled, but when I click in the map to create que first point of the polyline, the snap doesn't happen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="438208" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/438208_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="438233" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/438233_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing some step of this implementation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:47:14 GMT</pubDate>
    <dc:creator>RafaelTietz_Strellow1</dc:creator>
    <dc:date>2021-12-11T20:47:14Z</dc:date>
    <item>
      <title>Problem using alwaysSnap from SnappingManager on custom widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-using-alwayssnap-from-snappingmanager-on/m-p/468781#M43467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having trouble using the SnappingManager of the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a custom widget in which the user create features in 2 layers of the map. What I need is&amp;nbsp;when creating a polyline feature,&amp;nbsp;it&amp;nbsp;starts connected to other pre-existing feature of the same layer, so I'm trying to enable the snapping tool to&amp;nbsp;work all time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the API reference, doing this code would work, and the snapping tool would be working all time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; _snapManager &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;enableSnapping&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
&lt;SPAN class="string token"&gt;"alwaysSnap"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;true&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically the snapping tool is enabled, but when I click in the map to create que first point of the polyline, the snap doesn't happen:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="438208" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/438208_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="438233" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/438233_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing some step of this implementation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thaks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:47:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-using-alwayssnap-from-snappingmanager-on/m-p/468781#M43467</guid>
      <dc:creator>RafaelTietz_Strellow1</dc:creator>
      <dc:date>2021-12-11T20:47:14Z</dc:date>
    </item>
  </channel>
</rss>

