<?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 Cannot override SnappingOptions.featureSources when loading a WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-override-snappingoptions-featuresources/m-p/1160764#M76912</link>
    <description>&lt;P&gt;Using the latest 4.23 release, I am trying to override the snappingOptions of the Sketch widget in order to only show a limited number of layers to the user to select for snapping.&amp;nbsp; With a regular esri/Map object, I can successfully set the featureSources as desired.&amp;nbsp; However, if I load a WebMap, then setting the featureSources property on the snappingOptions has no effect and the FeatureLayers defined in the WebMap appear to always be used.&lt;BR /&gt;&lt;BR /&gt;Trying to clear the featureSource later (via sketch.snappingOptions.featureSources.removeAll()) appears to have no effect, either.&lt;/P&gt;&lt;P&gt;Looking for a recommendation on how to work around this issue. Codepen demonstrating the issue: &lt;A href="https://codepen.io/lscharen/pen/oNppGdj" target="_blank" rel="noopener"&gt;https://codepen.io/lscharen/pen/oNppGdj&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Apr 2022 14:26:17 GMT</pubDate>
    <dc:creator>LucasScharenbroich</dc:creator>
    <dc:date>2022-04-04T14:26:17Z</dc:date>
    <item>
      <title>Cannot override SnappingOptions.featureSources when loading a WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-override-snappingoptions-featuresources/m-p/1160764#M76912</link>
      <description>&lt;P&gt;Using the latest 4.23 release, I am trying to override the snappingOptions of the Sketch widget in order to only show a limited number of layers to the user to select for snapping.&amp;nbsp; With a regular esri/Map object, I can successfully set the featureSources as desired.&amp;nbsp; However, if I load a WebMap, then setting the featureSources property on the snappingOptions has no effect and the FeatureLayers defined in the WebMap appear to always be used.&lt;BR /&gt;&lt;BR /&gt;Trying to clear the featureSource later (via sketch.snappingOptions.featureSources.removeAll()) appears to have no effect, either.&lt;/P&gt;&lt;P&gt;Looking for a recommendation on how to work around this issue. Codepen demonstrating the issue: &lt;A href="https://codepen.io/lscharen/pen/oNppGdj" target="_blank" rel="noopener"&gt;https://codepen.io/lscharen/pen/oNppGdj&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 14:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cannot-override-snappingoptions-featuresources/m-p/1160764#M76912</guid>
      <dc:creator>LucasScharenbroich</dc:creator>
      <dc:date>2022-04-04T14:26:17Z</dc:date>
    </item>
  </channel>
</rss>

