<?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 Limit features from featureLayer to visible extent in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1245214#M79765</link>
    <description>&lt;P&gt;Hi all, is it possible to get a FeatureLayer to limit features that are displayed on the map to just the current map extent that I'm viewing?&lt;/P&gt;&lt;P&gt;My featureLayer has roughly 280K features covering the entire county. I've restricted the scale at which the features show, so you have to be zoomed into a small area before they load. When the features are displayed it's loading &lt;STRONG&gt;all&lt;/STRONG&gt; 280k features onto the map which can take 1-2 mins. Once all features are loaded, it's fine and you can zoom around the map and select features with no issue, however that's not what I require. I'd like it to just load on the area I'm viewing and hopefully that will vastly improve the initial performance.&lt;/P&gt;&lt;P&gt;This map is going to be customer facing and will be used to log an issue against a feature via the popup. With the current initial load time it would be unacceptable for use.&lt;BR /&gt;&lt;BR /&gt;I've seen something called queryExtent but I'm not sure how I would implement it?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2023 10:56:57 GMT</pubDate>
    <dc:creator>ITApplications</dc:creator>
    <dc:date>2023-01-13T10:56:57Z</dc:date>
    <item>
      <title>Limit features from featureLayer to visible extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1245214#M79765</link>
      <description>&lt;P&gt;Hi all, is it possible to get a FeatureLayer to limit features that are displayed on the map to just the current map extent that I'm viewing?&lt;/P&gt;&lt;P&gt;My featureLayer has roughly 280K features covering the entire county. I've restricted the scale at which the features show, so you have to be zoomed into a small area before they load. When the features are displayed it's loading &lt;STRONG&gt;all&lt;/STRONG&gt; 280k features onto the map which can take 1-2 mins. Once all features are loaded, it's fine and you can zoom around the map and select features with no issue, however that's not what I require. I'd like it to just load on the area I'm viewing and hopefully that will vastly improve the initial performance.&lt;/P&gt;&lt;P&gt;This map is going to be customer facing and will be used to log an issue against a feature via the popup. With the current initial load time it would be unacceptable for use.&lt;BR /&gt;&lt;BR /&gt;I've seen something called queryExtent but I'm not sure how I would implement it?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Ricky&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1245214#M79765</guid>
      <dc:creator>ITApplications</dc:creator>
      <dc:date>2023-01-13T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Limit features from featureLayer to visible extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1246891#M79837</link>
      <description>&lt;P&gt;You may find the solution to this &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/querying-featureservice-behaves-differently/m-p/1246728" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 17:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1246891#M79837</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-01-10T17:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Limit features from featureLayer to visible extent</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1247981#M79892</link>
      <description>&lt;P&gt;Hi Joel&lt;/P&gt;&lt;P&gt;Thank you so much for the link which lead me to the solution. Following the advice I've applied the following to the beginning of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;&amp;lt;script&amp;gt;
      var dojoConfig = {
        has: {
          "featurelayer-snapshot-enabled": 0,
        }
      };
    &amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I can say is wow what a difference in performance! The features now load in my view in the blink of an eye rather than an agonising wait whilst it loaded data for the whole county!&lt;/P&gt;&lt;P&gt;Thanks again, Ricky.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 10:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-features-from-featurelayer-to-visible-extent/m-p/1247981#M79892</guid>
      <dc:creator>ITApplications</dc:creator>
      <dc:date>2023-01-13T10:56:25Z</dc:date>
    </item>
  </channel>
</rss>

