<?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: Limit  FeatureLayer features to the current extent? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643255#M60003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe this functionality exists yet, though I'm sure it's on the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can query a feature serviced by extent manually, so it would be possible to set this up yourself for the time being. &amp;nbsp;Here's a sample that queries by extent whenever the extent changes, with a 200 ms debounce:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/vabufototu/edit?html,output" title="https://jsbin.com/vabufototu/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sample uses a graphics layer as a proxy for the features. &amp;nbsp;Every time the feature service is queried, the graphics layer is cleared and the new features are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also could only get that to work in a Scene View. &amp;nbsp;There's some issue/bug that prevents the renderer from being cloned in a MapView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 17:11:56 GMT</pubDate>
    <dc:creator>ThomasSolow</dc:creator>
    <dc:date>2017-08-02T17:11:56Z</dc:date>
    <item>
      <title>Limit  FeatureLayer features to the current extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643254#M60002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Is there a way to get FeatureLayer to limit features to the current extent?&amp;nbsp; I’m trying to use a FeatureLayer to display some features in 3D.&amp;nbsp; The layer has ~180,000 features.&amp;nbsp; When displaying features, FeatureLayer doesn’t seem to take the current extent into account, and tries to get everything.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;If I’m zoomed into a small area, this usually means that nothing is displayed, because the server just returns the first 1000 features it finds in the database (maximum # of records returned is 1000), and none of these features happen to be in the current extent!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Is there a parameter I need to set?&amp;nbsp; Or is this something that will be addressed in a future API version? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 05:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643254#M60002</guid>
      <dc:creator>JimNoel</dc:creator>
      <dc:date>2017-08-02T05:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Limit  FeatureLayer features to the current extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643255#M60003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't believe this functionality exists yet, though I'm sure it's on the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can query a feature serviced by extent manually, so it would be possible to set this up yourself for the time being. &amp;nbsp;Here's a sample that queries by extent whenever the extent changes, with a 200 ms debounce:&amp;nbsp;&lt;A class="link-titled" href="https://jsbin.com/vabufototu/edit?html,output" title="https://jsbin.com/vabufototu/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sample uses a graphics layer as a proxy for the features. &amp;nbsp;Every time the feature service is queried, the graphics layer is cleared and the new features are added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also could only get that to work in a Scene View. &amp;nbsp;There's some issue/bug that prevents the renderer from being cloned in a MapView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 17:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643255#M60003</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-08-02T17:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Limit  FeatureLayer features to the current extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643256#M60004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response, Thomas!  I'll check out your alternate &lt;/P&gt;&lt;P&gt;solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 19:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643256#M60004</guid>
      <dc:creator>JimNoel</dc:creator>
      <dc:date>2017-08-02T19:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Limit  FeatureLayer features to the current extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643257#M60005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, looks like the issue with MapView is that that renderers on a graphics layer are not supported on a MapView. &amp;nbsp;The documentation says GraphicsLayer doesn't support renderers at all (which doesn't appear to be true in 3D).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can work around this issue by setting the symbol manually on each returned feature:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsbin.com/juzinedisa/edit?html,output" title="https://jsbin.com/juzinedisa/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Aug 2017 20:08:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643257#M60005</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-08-02T20:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Limit  FeatureLayer features to the current extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643258#M60006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply to this question. Very helpful. Do you have any idea what the ETA is for this feature? I ask because its important for our application that we have it, so if the fix is a long way off, then it makes sense for us to invest time into a workaround. If the fix is expected soon, however, then it makes sense to simply move on to other issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 18:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643258#M60006</guid>
      <dc:creator>TristanSebens</dc:creator>
      <dc:date>2017-08-04T18:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Limit  FeatureLayer features to the current extent?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643259#M60007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see an ETA in the &lt;A href="https://developers.arcgis.com/javascript/latest/guide/functionality-matrix/index.html"&gt;functionality matrix&lt;/A&gt;. &amp;nbsp;This feature exists in the 3.X API though, so it may make its way to the 4.XX version eventually. &amp;nbsp;It seems pretty important to me, although there may be other workarounds for this kind of functionality I'm unaware of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 19:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/limit-featurelayer-features-to-the-current-extent/m-p/643259#M60007</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-08-04T19:43:32Z</dc:date>
    </item>
  </channel>
</rss>

