<?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 Re: Enterprise point FeatureLayers in 4.20 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1135944#M76033</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;Thank you for this! Opting out fixed the issue! Is this something that will be maintained long-term?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We must be triggering the second condition. We have a default extent of the whole US view and then we detect and have &amp;gt; 350k features. With that many features, client side filtering doesn't work well for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 18:39:12 GMT</pubDate>
    <dc:creator>RyderRoss</dc:creator>
    <dc:date>2022-01-21T18:39:12Z</dc:date>
    <item>
      <title>Enterprise point FeatureLayers in 4.20</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1134127#M75929</link>
      <description>&lt;P&gt;I understand that ArcGIS JS 4.19 was changed to load *all* points from ArcGIS Online FeatureLayers into memory and that in 4.20 that was extended to also include&amp;nbsp;Enterprise FeatureLayers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an Enterprise point FeatureLayer with ~350k points and we'd very much like to prevent that from occurring as it hammers our performance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will there be any options to prevent this behavior? Maybe an option to choose whether it should try to load all points or not?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, we have an issue in 4.21 and/or 4.22 where changing the definitionExpression of a layer does not remove points/clusters from the map when the definitionExpression is more restrictive but I'm not sure if that's a by-product of this issue or not.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jan 2022 00:27:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1134127#M75929</guid>
      <dc:creator>RyderRoss</dc:creator>
      <dc:date>2022-01-15T00:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise point FeatureLayers in 4.20</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1134770#M75967</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the snapshot mode (we load all features on layer load) is enabled when one of the following conditions are met, otherwise layers will fetch its data as needed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If the layer has 0-80,000 points&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;if the layer has 80,001 - 400,000 points and if the view's initial extent is greater than 10% of layer's data extent (i.e., we are not super zoomed in).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Snapshot should be very performant after the initial load. However, if you are making server side calls via refreshInterval or refresh() method, this can slow down the performance as the app has to download the entire data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you considered using client-side filters like &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#filter" target="_self"&gt;FeatureFilter&lt;/A&gt; or &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#featureEffect" target="_self"&gt;FeatureEffect&lt;/A&gt; on the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html" target="_self"&gt;FeatureLayerView&lt;/A&gt;? If you are querying your data also have you considered using client side queries via &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-layers-FeatureLayerView.html#queryFeatures" target="_self"&gt;FeatureLayerView.queryFeatures()&lt;/A&gt;? Setting those properties and calling the those methods on the LayerView will take place on the client-side without having to fetch data from the server side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a very simple test app where the layer is loaded in the snapshot mode. I have aded a few buttons where you can set the layer.definitionExpression versus layerView.filter. If you have the network tab open, you'll notice that setting layerView.filter does not generate network requests.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case, you can opt of out your layer loading in a snapshot mode by setting&amp;nbsp;&lt;EM&gt;featurelayer-snapshot-enabled&lt;/EM&gt; flag to 0. You can test this flag in the test app I provided by uncommenting the script tag added towards to beginning of the app:&amp;nbsp;&lt;A href="https://codepen.io/U_B_U/pen/dyVLKaG?editors=1000" target="_blank"&gt;https://codepen.io/U_B_U/pen/dyVLKaG?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I cannot reproduce the definitionExpression issue you are describing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 20:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1134770#M75967</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2022-01-18T20:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise point FeatureLayers in 4.20</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1135944#M76033</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/53756"&gt;@UndralBatsukh&lt;/a&gt;&amp;nbsp;Thank you for this! Opting out fixed the issue! Is this something that will be maintained long-term?&amp;nbsp;&lt;/P&gt;&lt;P&gt;We must be triggering the second condition. We have a default extent of the whole US view and then we detect and have &amp;gt; 350k features. With that many features, client side filtering doesn't work well for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 18:39:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/enterprise-point-featurelayers-in-4-20/m-p/1135944#M76033</guid>
      <dc:creator>RyderRoss</dc:creator>
      <dc:date>2022-01-21T18:39:12Z</dc:date>
    </item>
  </channel>
</rss>

