<?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 Advice Needed on Handling Large Feature Layers and Rendering Speed in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advice-needed-on-handling-large-feature-layers-and/m-p/558271#M52088</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a JS API app that renders and queries an AGOL Feature Layer (created from shapefile) that is hosted on my account.&amp;nbsp; That FL contains upward of 5-7k small polygon features.&amp;nbsp; My application refreshes every five minutes, which causes the features to redraw, with rendering symbology based upon certain criteria.&amp;nbsp; Aside from the five minute refresh, the user can also alter the aforementioned criteria which yields different symbology upon another refresh/redraw.&amp;nbsp; All that really isn't important, just wanted to stress the amount of feature drawing that is taking place.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is I have noticed that the redrawing can take quite a while at times, depending on the amount of features returned and net speed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this, is there a better way to do this?&amp;nbsp; I see in newer JS API versions that a feature collection can be generated from a shapefile.&amp;nbsp; The app runs on a local APACHE server.&amp;nbsp; Could I possibly load a shapefile on that server and utilize a local feature collection for rapid refreshing?&amp;nbsp; Should I convert the shapefile (the native format) to JSON, is that any faster (seems like a lot of graphics to draw)?&amp;nbsp; I'd imagine being able to host a local JSON file with all features would be faster, essentially eliminating any internet traffic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially what I need to be able to do is the following:&lt;/P&gt;&lt;P&gt;Query the feature attributes&lt;/P&gt;&lt;P&gt;Render the features individually based upon those attributes (currently I use renderer.addValue&amp;nbsp;for each feature meeting criteria then I use setDefinitionExpression on the layer to return only the features that I have set the renderer for)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, I believe there is a feature limit on that AGOL FL that I'd like to overcome&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2018 19:59:31 GMT</pubDate>
    <dc:creator>CharlesGant</dc:creator>
    <dc:date>2018-10-09T19:59:31Z</dc:date>
    <item>
      <title>Advice Needed on Handling Large Feature Layers and Rendering Speed</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advice-needed-on-handling-large-feature-layers-and/m-p/558271#M52088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a JS API app that renders and queries an AGOL Feature Layer (created from shapefile) that is hosted on my account.&amp;nbsp; That FL contains upward of 5-7k small polygon features.&amp;nbsp; My application refreshes every five minutes, which causes the features to redraw, with rendering symbology based upon certain criteria.&amp;nbsp; Aside from the five minute refresh, the user can also alter the aforementioned criteria which yields different symbology upon another refresh/redraw.&amp;nbsp; All that really isn't important, just wanted to stress the amount of feature drawing that is taking place.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is I have noticed that the redrawing can take quite a while at times, depending on the amount of features returned and net speed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is this, is there a better way to do this?&amp;nbsp; I see in newer JS API versions that a feature collection can be generated from a shapefile.&amp;nbsp; The app runs on a local APACHE server.&amp;nbsp; Could I possibly load a shapefile on that server and utilize a local feature collection for rapid refreshing?&amp;nbsp; Should I convert the shapefile (the native format) to JSON, is that any faster (seems like a lot of graphics to draw)?&amp;nbsp; I'd imagine being able to host a local JSON file with all features would be faster, essentially eliminating any internet traffic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially what I need to be able to do is the following:&lt;/P&gt;&lt;P&gt;Query the feature attributes&lt;/P&gt;&lt;P&gt;Render the features individually based upon those attributes (currently I use renderer.addValue&amp;nbsp;for each feature meeting criteria then I use setDefinitionExpression on the layer to return only the features that I have set the renderer for)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, I believe there is a feature limit on that AGOL FL that I'd like to overcome&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 19:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/advice-needed-on-handling-large-feature-layers-and/m-p/558271#M52088</guid>
      <dc:creator>CharlesGant</dc:creator>
      <dc:date>2018-10-09T19:59:31Z</dc:date>
    </item>
  </channel>
</rss>

