<?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 Confused about FeatureSnappingLayerSource in SnappingOptions in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confused-about-featuresnappinglayersource-in/m-p/1543190#M85776</link>
    <description>&lt;P&gt;I'm on version 4.30.6 of the SDK, and struggling to limit which Layers are eligible for snapping in the Sketch Widget. I'm passing in a SnappingOptions instance, and later (when the MapView is done updating), I'm setting the "featureSources" to only include the Layers I wish to include, but it seems like all that property is good for is to enable layers for picking.&lt;/P&gt;&lt;P&gt;Here's a pen that demonstrates the list of FeatureSnappingLayerSources passed to the SnappingOptions (or to the SnappingControls) isn't the list displayed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/toddrun/pen/XWvbmbd" target="_blank"&gt;https://codepen.io/toddrun/pen/XWvbmbd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This seems like a bug to me, but perhaps the “featureSources” is nothing more than a way to enable/disable layers, rather than to include/exclude layers for snapping. Besides trying to target the "Sketch Layer" with css and setting it's display to "none", how else can I remove Layers from the SnappingControls list?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 19:22:53 GMT</pubDate>
    <dc:creator>ToddRunstein</dc:creator>
    <dc:date>2024-09-26T19:22:53Z</dc:date>
    <item>
      <title>Confused about FeatureSnappingLayerSource in SnappingOptions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confused-about-featuresnappinglayersource-in/m-p/1543190#M85776</link>
      <description>&lt;P&gt;I'm on version 4.30.6 of the SDK, and struggling to limit which Layers are eligible for snapping in the Sketch Widget. I'm passing in a SnappingOptions instance, and later (when the MapView is done updating), I'm setting the "featureSources" to only include the Layers I wish to include, but it seems like all that property is good for is to enable layers for picking.&lt;/P&gt;&lt;P&gt;Here's a pen that demonstrates the list of FeatureSnappingLayerSources passed to the SnappingOptions (or to the SnappingControls) isn't the list displayed:&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/toddrun/pen/XWvbmbd" target="_blank"&gt;https://codepen.io/toddrun/pen/XWvbmbd&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This seems like a bug to me, but perhaps the “featureSources” is nothing more than a way to enable/disable layers, rather than to include/exclude layers for snapping. Besides trying to target the "Sketch Layer" with css and setting it's display to "none", how else can I remove Layers from the SnappingControls list?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 19:22:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/confused-about-featuresnappinglayersource-in/m-p/1543190#M85776</guid>
      <dc:creator>ToddRunstein</dc:creator>
      <dc:date>2024-09-26T19:22:53Z</dc:date>
    </item>
  </channel>
</rss>

