<?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 Querying FeatureService behaves differently depending on MapView Zoom Level in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-featureservice-behaves-differently/m-p/1246728#M79832</link>
    <description>&lt;P&gt;There is a strange behaviour when querying a FeatureService. I have a Point FeatureLayer that is hosted on ArcGIS Portal in a MapView. When the zoom level in the MapView is initially set to a high number (e. g.10), then&amp;nbsp; the points from the FeatureLayer are queried by the extent of the MapView, which is what I expect. However, when the initial zoom level of the map is at around 3 or lower or unset, then all points are loaded at once using queries with the parameters &lt;EM&gt;resultOffset&lt;/EM&gt; and &lt;EM&gt;resultRecordCount. &lt;/EM&gt;This happens regardless of the current zoom level of the MapView .The layer has a scel-dependent visibility and is only visible when zooming in. The layer has 100'000s of points, i don't ever want to load all the points.&lt;/P&gt;&lt;P&gt;Here an example of the behaviour:&amp;nbsp;&lt;A href="https://codepen.io/ech-daha/pen/zYLKjPw?editors=1010" target="_self"&gt;CodePen&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to cinfuger the loading behaviour? I couldn't find any doumentation on this behaviour, this would be very helpful.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jan 2023 13:16:35 GMT</pubDate>
    <dc:creator>DavidHanimann</dc:creator>
    <dc:date>2023-01-10T13:16:35Z</dc:date>
    <item>
      <title>Querying FeatureService behaves differently depending on MapView Zoom Level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-featureservice-behaves-differently/m-p/1246728#M79832</link>
      <description>&lt;P&gt;There is a strange behaviour when querying a FeatureService. I have a Point FeatureLayer that is hosted on ArcGIS Portal in a MapView. When the zoom level in the MapView is initially set to a high number (e. g.10), then&amp;nbsp; the points from the FeatureLayer are queried by the extent of the MapView, which is what I expect. However, when the initial zoom level of the map is at around 3 or lower or unset, then all points are loaded at once using queries with the parameters &lt;EM&gt;resultOffset&lt;/EM&gt; and &lt;EM&gt;resultRecordCount. &lt;/EM&gt;This happens regardless of the current zoom level of the MapView .The layer has a scel-dependent visibility and is only visible when zooming in. The layer has 100'000s of points, i don't ever want to load all the points.&lt;/P&gt;&lt;P&gt;Here an example of the behaviour:&amp;nbsp;&lt;A href="https://codepen.io/ech-daha/pen/zYLKjPw?editors=1010" target="_self"&gt;CodePen&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to cinfuger the loading behaviour? I couldn't find any doumentation on this behaviour, this would be very helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 13:16:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-featureservice-behaves-differently/m-p/1246728#M79832</guid>
      <dc:creator>DavidHanimann</dc:creator>
      <dc:date>2023-01-10T13:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Querying FeatureService behaves differently depending on MapView Zoom Level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-featureservice-behaves-differently/m-p/1246886#M79836</link>
      <description>&lt;P&gt;Although there is no documentation I know of regarding this, you can "opt out" of this behavior.&amp;nbsp; The short of it is that you would add this in a script tag prior to loading the API:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var dojoConfig = {
	has: {
		"featurelayer-snapshot-enabled": 0 // disable snapshot
	}
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is derived from &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1134770" target="_self"&gt;this thread&lt;/A&gt;, at the end of the solution post.&amp;nbsp; For reference, these settings are found in the esri/core/has.js file.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 17:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-featureservice-behaves-differently/m-p/1246886#M79836</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-10T17:23:35Z</dc:date>
    </item>
  </channel>
</rss>

