<?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: clustering 15,000+ items using javascript API and a FeatureServer or MapServer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246702#M22852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clustering on the client works fine with javascript if you have a couple of thousands points.&lt;/P&gt;&lt;P&gt;For millions, I would do it in the backend &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 16:28:38 GMT</pubDate>
    <dc:creator>HinnerkGildhoff</dc:creator>
    <dc:date>2015-12-09T16:28:38Z</dc:date>
    <item>
      <title>clustering 15,000+ items using javascript API and a FeatureServer or MapServer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246699#M22849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;interesting problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS server, that has a FeatureServer and a MapServer, serving layer with 15,000+ items.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;problem: the service is configured to return max 1,000 items per query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currenty, my javascript page is using the FeatureServer, which is great, as I can use Feature Definition Expressions to filter the items.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;problem: the FeatureServer only ever returns about 2,000 items, which means that when zoomed out, then whole areas of the map are empty!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;note: requirement is that user should be able to view map at global scale (zoomed out) AND be able to see all 15,000 items, or at least clusters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;proposed solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;==============&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;re-configure the *MapServer* to return max 8,000 or ideally 20,000 items.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;change javascript, to send query (with params to filter) to retrieve ALL matching items ( up to 15,000+ items ).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then javascript will use a custom clustering solution (taking an example from the ArcGIS help site) to cluster the items, so that we can draw a reasonable number of items in the browser, say 500 items.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PROBLEM:&amp;nbsp; the ArcGIS server is outside of my control, and the admins might NOT agree to increasing the max items returned from a query, which is currently limited to 1,000 items.&amp;nbsp;&amp;nbsp; this means it would take up to 16 queries to populate the map, which is frankly silly !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QUESTION: has anyone got an alternative solution ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for example - could the *FeatureServer* be re-configured to support clustering ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;note: we need to work with individual items, as we have a complex filtering requirement (with about 20+ different attributes that the user can filter on) so a solution with say Country layer or State layer etc is not good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried setting the 'generalising' parameters, setMaxAllowableOffset(), but this seems to have no effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is setMaxAllowableOffset() obsolete, since it is for 'generalising' which is supposed to be done automatically by Feature Server ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have also tried MODE_SNAPSHOT but found that MODE_ONDEMAND actually brings back more items, and so, is more useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Possible solution: just write my own web service to serve up the map points.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;however, this is a *lot* of work, and there could be deployment issues, as the Production Environment is very restricted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help or tips would be most appreciated ....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Nov 2012 09:42:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246699#M22849</guid>
      <dc:creator>SeanRyan</dc:creator>
      <dc:date>2012-11-16T09:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: clustering 15,000+ items using javascript API and a FeatureServer or MapServer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246700#M22850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The spatial engine of SAP HANA offers clustering at database level. So you can cluster big amounts of data in the backend (in-memory) and transfer just the cluster result via features services to the client. If this sounds interesting for you, here's a link to the official documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_hanaplatform/helpdata/en/eb/b0955d1b6e4d4baf47263fca55e081/content.htm?frameset=/en/7e/b3c0e6bbf04fc6bcb9809d81533e6f/frameset.htm&amp;amp;current_toc=/en/99/d10e4fdaaf41588480a43478e840d5/plain.htm&amp;amp;node_id=158&amp;amp;show_children=false" title="http://help.sap.com/saphelp_hanaplatform/helpdata/en/eb/b0955d1b6e4d4baf47263fca55e081/content.htm?frameset=/en/7e/b3c0e6bbf04fc6bcb9809d81533e6f/frameset.htm&amp;amp;current_toc=/en/99/d10e4fdaaf41588480a43478e840d5/plain.htm&amp;amp;node_id=158&amp;amp;show_children=false"&gt;Spatial Clustering - SAP HANA Spatial Reference - SAP Library&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 11:11:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246700#M22850</guid>
      <dc:creator>HinnerkGildhoff</dc:creator>
      <dc:date>2015-12-09T11:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: clustering 15,000+ items using javascript API and a FeatureServer or MapServer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246701#M22851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are a couple of client-side solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/cluster-layer-js" title="https://github.com/Esri/cluster-layer-js"&gt;Esri/cluster-layer-js · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this one, if there are 15,000 records, but max limit of 1000 per request, it will make 15 requests and cache them. Similar to a SNAPSHOT mode of FeatureLayer. Performance may vary, but once data is downloaded, draws should be fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's this FlareClusterLayer&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/nickcam/FlareClusterLayer" title="https://github.com/nickcam/FlareClusterLayer"&gt;nickcam/FlareClusterLayer · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't know if it can pull down any more data than a regular FeatureLayer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 14:39:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246701#M22851</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2015-12-09T14:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: clustering 15,000+ items using javascript API and a FeatureServer or MapServer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246702#M22852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clustering on the client works fine with javascript if you have a couple of thousands points.&lt;/P&gt;&lt;P&gt;For millions, I would do it in the backend &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 16:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/clustering-15-000-items-using-javascript-api-and-a/m-p/246702#M22852</guid>
      <dc:creator>HinnerkGildhoff</dc:creator>
      <dc:date>2015-12-09T16:28:38Z</dc:date>
    </item>
  </channel>
</rss>

