<?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: ESRI point clustering example using featurelayer or querytask as input? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245280#M22666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One of the parameters for cluster layer is "data". As noted in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_point_clustering.html"&gt;sample description&lt;/A&gt;&lt;SPAN&gt;, data is an array of objects and each object has the following properties:&amp;nbsp; x, y and attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the workflow to get data from a layer in a map service or feature service in this format:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;send a request to the layer's query endpoint with esri.request&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;when data comes back, use dojo.map to create an array of objects with x, y and attributes properties&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;pass the result from dojo.map to the cluster layer&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a high level overview. Can one of you take a crack at coding it up and post back here? I can provide further help if you can't make it work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2012 17:09:00 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-10-05T17:09:00Z</dc:date>
    <item>
      <title>ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245278#M22664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried to implement the ESRI forum example for clustering "Clustering with Javascript API" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=c546bc8d4f0b4c0fbdf149b92223e681" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=c546bc8d4f0b4c0fbdf149b92223e681&lt;/A&gt;&lt;SPAN&gt; with mixed results.&amp;nbsp; Sometimes the cluster layer draws fine and sometimes it doesn't draw at all.&amp;nbsp; Even when it draws it's very slow and I'm not sure the users will be satisfied.&amp;nbsp; There seems to be mixed reviews on this.&amp;nbsp; The fact that it's display seem to be intermittent for me is enough for me to look to another clustering solution.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More recently, the ESRI sample "Point Clustering" was posted. &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_point_clustering.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/layers_point_clustering.html&lt;/A&gt;&lt;SPAN&gt; I like the way this looks, but I'm having a hard time understanding how to make it work with a layer as input, since my data is already in a service.&amp;nbsp; It seems like either I should add a function to step through all my features to create properly formatted input data, or I should edit the custom layer to handle features of a featureset or featurelayer instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone modified ESRI's point clustering example to use something besides the input JSON file?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 15:32:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245278#M22664</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-10-05T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245279#M22665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Having the same problem. Please help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 16:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245279#M22665</guid>
      <dc:creator>GordonBooth</dc:creator>
      <dc:date>2012-10-05T16:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245280#M22666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One of the parameters for cluster layer is "data". As noted in the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/layers_point_clustering.html"&gt;sample description&lt;/A&gt;&lt;SPAN&gt;, data is an array of objects and each object has the following properties:&amp;nbsp; x, y and attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the workflow to get data from a layer in a map service or feature service in this format:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;send a request to the layer's query endpoint with esri.request&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;when data comes back, use dojo.map to create an array of objects with x, y and attributes properties&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;pass the result from dojo.map to the cluster layer&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a high level overview. Can one of you take a crack at coding it up and post back here? I can provide further help if you can't make it work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 17:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245280#M22666</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-05T17:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245281#M22667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="color:#333333;"&gt;Sometimes the cluster layer draws fine and sometimes it doesn't draw at all&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that by default, ArcGIS Server only returns 1,000 features as a result of a query. In the problem above, it may be the case that you're zooming to an extent which doesn't contain any returned features (depending on how you're structuring the query).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 00:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245281#M22667</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-10-08T00:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245282#M22668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I"m not sure why I would use an esri.request to the query endpoint as opposed to executing a standard query task.&amp;nbsp; I usually execute my query tasks with a callback to generate my featureset.&amp;nbsp; Is is faster to request the data or formatted differently if I use esri.request instead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 12:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245282#M22668</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-10-09T12:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245283#M22669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I"m not sure why I would use an esri.request to the query endpoint as opposed to executing a standard query task.&amp;nbsp; I usually execute my query tasks with a callback to generate my featureset.&amp;nbsp; Is is faster to request the data or formatted differently if I use esri.request instead?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use a QueryTask to pull your features out. I said esri.request because it's always available (no additional modules to load) and you don't need any of Query's special functionality. I wouldn't expect a noticeable performance difference between the two.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 14:30:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245283#M22669</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-09T14:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245284#M22670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'll just stick with my standard query task syntax then, which I'm more familiar with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting stuck at the very beginning with the dojo.Config, which is generating an error in Aptana (version 2).&amp;nbsp; I got this error when I loaded the sample too:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dojoConfig = {&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: true, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages: [{ 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "name": "extras", 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "location": location.pathname.replace(/\/[^/]+$/, '') + "/extras" }] 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }; 
&amp;lt;/script&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Multiple items missing at this position:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;missing ) after argument list&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bad regular expression:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;\/[^/]+$/, '') + "/extras"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the ESRI example, I changed this to have the location as just "/extras", which got rid of the error and then the sample ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I made the same changes in my own code for dojo.Config, it errors on the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.require("extras,ClusterLayer); 
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The error in Firebug is 'url is undefined', which I take to mean it's not finding ClusterLayer.js after all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wouldn't call myself a novice programmer, but I am relatively new to JavaScript.&amp;nbsp; I'm pretty comfortable with the coding of the functions, so probably the error toward the top.&amp;nbsp; I don't know if my query task function is correct because it's not making it that far before it blows up!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245284#M22670</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-11T12:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245285#M22671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see now that I still had all my references to version 2.5 of the API because that's what the forum post for clusters used.&amp;nbsp; I changed my API references to 3.2 and I'm not getting the error on the dojo.require("extras.ClusterLayer").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code still isn't working right, but at least I'm past the first error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245285#M22671</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-10-09T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245286#M22672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;I see now that I still had all my references to version 2.5 &amp;lt;snip&amp;gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That will make a big difference. Glad you moved up to 3.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;The code still isn't working right, but at least I'm past the first error.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Post the code you're currently using and a description of what isn't working?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245286#M22672</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-09T15:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245287#M22673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't believe I got it work!&amp;nbsp; This method executes much faster than the forum example, so I'm glad I switched.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the function that creates the cluster layer. I have an init function that calls it, and that is where infoTemplate is defined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function runQuery(){ &amp;nbsp;&amp;nbsp;&amp;nbsp; // layer 1 in the service contains all server locations and will be used to cluster &amp;nbsp;&amp;nbsp;&amp;nbsp; var queryTask = new esri.tasks.QueryTask("http://&amp;lt;myserver&amp;gt;/ArcGIS/rest/services/ITSD/serverLocations/MapServer/1"); &amp;nbsp;&amp;nbsp;&amp;nbsp; var query = new esri.tasks.Query(); &amp;nbsp;&amp;nbsp;&amp;nbsp; query.returnGeometry = true; &amp;nbsp;&amp;nbsp;&amp;nbsp; query.where = '1=1'; &amp;nbsp;&amp;nbsp;&amp;nbsp; query.outFields = ["*"]; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(queryTask, "onComplete", function(featureSet){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var inputInfo = {}; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputInfo.data = dojo.map(featureSet.features, function(feature){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pointX = feature.geometry.x; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pointY = feature.geometry.y; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var att = feature.attributes; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x": pointX, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "y": pointY, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "attributes": att &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // cluster layer that uses OpenLayers style clustering&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clusterLayer = new extras.ClusterLayer({ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "data": inputInfo.data, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "distance": 100, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "clusters", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "labelColor": "#fff", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "labelOffset": 10, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "resolution": map.extent.getWidth() / map.width, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "singleColor": "#888", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "singleTemplate": infoTemplate &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var defaultSym = new esri.symbol.SimpleMarkerSymbol().setSize(4); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var renderer = new esri.renderer.ClassBreaksRenderer(defaultSym, "clusterCount"); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var blue = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/BluePin1LargeB.png", 32, 32).setOffset(0, 15); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var green = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/GreenPin1LargeB.png", 64, 64).setOffset(0, 15); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var red = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/RedPin1LargeB.png", 72, 72).setOffset(0, 15); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.addBreak(0, 2, blue); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.addBreak(2, 200, green); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; renderer.addBreak(200, 1001, red); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clusterLayer.setRenderer(renderer); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.addLayer(clusterLayer); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // close the info window when the map is clicked&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // dojo.connect(map, "onClick", cleanUp);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // close the info window when esc is pressed&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(map, "onKeyDown", function(e){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (e.keyCode == 27) { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cleanUp(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.connect(queryTask, "onError", function(err){ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(err.details); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }); &amp;nbsp;&amp;nbsp;&amp;nbsp; queryTask.execute(query); }&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:43:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245287#M22673</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-10-09T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245288#M22674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I can't believe I got it work!&amp;nbsp; This method executes much faster than the forum example, so I'm glad I switched.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's awesome! Glad you got it working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 15:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245288#M22674</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-10-09T15:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245289#M22675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have any thoughts on the error I'm getting in location.pathname.replace?&amp;nbsp; It seems like I would be better of with this type of syntax instead of changing it to be more "hard coded".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 16:20:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245289#M22675</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2012-10-09T16:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245290#M22676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One question I have about this: is there any way to configure a cluster layer for a feature service so it isn't limited by the 1000 feature return limit on Server?&amp;nbsp; It seems that one of the benefits of clustering would be being able to visualize total number of events in an area, even if the total events are greater than 1000.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 13:26:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245290#M22676</guid>
      <dc:creator>Jay_Gregory</dc:creator>
      <dc:date>2013-02-01T13:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245291#M22677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;One question I have about this: is there any way to configure a cluster layer for a feature service so it isn't limited by the 1000 feature return limit on Server?&amp;nbsp; It seems that one of the benefits of clustering would be being able to visualize total number of events in an area, even if the total events are greater than 1000.&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Change the limit on the server, or do multiple requests to retrieve your data before handing it off to the cluster layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 15:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245291#M22677</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2013-02-01T15:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245292#M22678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any chance of having 'flare effect' with this clustering (just like silverlight/flex counterpar)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 19:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245292#M22678</guid>
      <dc:creator>muhammadalmas</dc:creator>
      <dc:date>2013-02-27T19:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245293#M22679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't hold your breath.&amp;nbsp; There is quite a bit of animation that easily used in FLEX that isn't there in JS.&amp;nbsp; I actually started out with the FLEX version, but have had to move away from it because of lack of mobile support.&amp;nbsp; Yes, I know it can be written as an app, but that's not a popular alternative in this office.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 19:25:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245293#M22679</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2013-02-27T19:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245294#M22680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sorry but I don't care much for ClusterLayer. Clustering is a feature of a graphic based layer (esri.layers.GraphicsLayer).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why should my layer lets say a featureLayer (which is a graphicsLayer subclass) morph into a different type of layer to display feature clusters? It doesn't make any sense!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Silverlight API got this right. In Silverlight, GraphicsLayer has a Clusterer property which encapsulates all the clustering logic, so if you need clustering you don't need to create a different type of layer and add it to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clustering in Silverlight happens when graphics are being added and you could easily extend the OnGraphicsAdded event handler to apply your own clustering logic or use existing FlareClusterer which works decently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not expecting all the flare animation, I'm aware of the challenges of that when it comes to running in different browsers, the only thing I'm expecting is a clusterer property for graphicsLayer and a defaultClusterer that would support basic clustering properties like maxFeatureCount, radius, and color.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245294#M22680</guid>
      <dc:creator>danbonab</dc:creator>
      <dc:date>2013-05-08T16:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245295#M22681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;a clusterer property for graphicsLayer and a defaultClusterer that would support basic clustering properties like maxFeatureCount, radius, and color.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+1, that would be very nice. Ideally it would work for a featureLayer too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 19:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245295#M22681</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2013-05-08T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245296#M22682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, we did it through the server-side clustering solutions and use Esri js-apis to plot the JSON outputs;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pls see the app link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.esri.com/www.bigdatavisulization.com:8...er_locate.html"&gt;http://www.bigdatavisulization.com:8...er_locate.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// we can remove the house number when searching, which will give 70 million records on-the-fly...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 14:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245296#M22682</guid>
      <dc:creator>bdv_works</dc:creator>
      <dc:date>2013-08-13T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI point clustering example using featurelayer or querytask as input?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245297#M22683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I noticed the link doesn't work, display's a blank map.&amp;nbsp; Is there a different link to look at?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have the clustering working well on 100,000+ points but noticed that when the cluster marker has more than 1000 count it drops the marker graphic and only displays the label.&amp;nbsp; Is this a limitation of the Javascript api or a bug with it?&amp;nbsp; Could it be it is droping it because it can't fit a 4 digit label inside the graphic?&amp;nbsp; I noticed ESRI example doesn't go over 999 either. &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html"&gt;https://developers.arcgis.com/en/javascript/jssamples/layers_point_clustering.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have suggestions on how to get the marker to work for counts of more than 999?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 12:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/esri-point-clustering-example-using-featurelayer/m-p/245297#M22683</guid>
      <dc:creator>BrianFischer</dc:creator>
      <dc:date>2013-10-30T12:56:43Z</dc:date>
    </item>
  </channel>
</rss>

