<?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: Cluster points - identify in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290016#M26698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried. &lt;BR /&gt;It is the wrong way because areas of two (and more) clusters intersected... And I get the same feature in both clusters &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: -266px; top: 6px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 May 2020 22:14:40 GMT</pubDate>
    <dc:creator>АлексейШульга</dc:creator>
    <dc:date>2020-05-23T22:14:40Z</dc:date>
    <item>
      <title>Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290012#M26694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;BR /&gt;When I click on the map, I get a cluster feature with attributes (clusterId, clster_count). But how can I get source features included in the cluster?&lt;/P&gt;&lt;P&gt;Now I see one way: create a circle with center = cluster point and radius = cluster radius, then query features from the layer (query.geomerty = circle).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 10:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290012#M26694</guid>
      <dc:creator>АлексейШульга</dc:creator>
      <dc:date>2020-05-22T10:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290013#M26695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this a 3.x or 4.x question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 12:29:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290013#M26695</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-05-22T12:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290014#M26696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-FeatureReductionCluster.html"&gt;FeatureReductionCluster | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 14:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290014#M26696</guid>
      <dc:creator>АлексейШульга</dc:creator>
      <dc:date>2020-05-22T14:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290015#M26697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This Beta class does not offer any way to determine the graphics in the cluster so using the cluster graphic and the cluster radius (like you mentioned) would be your best route currently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 May 2020 15:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290015#M26697</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-05-22T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290016#M26698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried. &lt;BR /&gt;It is the wrong way because areas of two (and more) clusters intersected... And I get the same feature in both clusters &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;DIV style="position: absolute; left: -266px; top: 6px;"&gt;&lt;DIV class="gtx-trans-icon"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2020 22:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/290016#M26698</guid>
      <dc:creator>АлексейШульга</dc:creator>
      <dc:date>2020-05-23T22:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1006741#M70985</link>
      <description>&lt;P&gt;I am also looking for a similar solution to this problem. Have you been able to find a proper solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 19:32:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1006741#M70985</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-12-03T19:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012217#M71184</link>
      <description>&lt;P data-unlink="true"&gt;I am following this as well. I thought the Sandbox &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=featurereduction-cluster-query" target="_self"&gt;here&lt;/A&gt; would help, but I'm still quite stuck.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;For example, I'm passing the cluster graphic this is clicked to the following function, which is really close to what the Sandbox provides. My screen does register a change, but it never is pulling back ONLY the features in the cluster.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;The popup label does accurately count how many features are clustered, but is there any updated guidance on accessing the underlying features?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;async displayClusterExtent(graphic) {
  const query = this.layerView.createQuery();
  query.aggregateIds = [graphic.getObjectId()];
  const { extent } = await this.layerView.queryExtent(query);
  this.view.goTo(extent);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 23:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012217#M71184</guid>
      <dc:creator>rogenjh</dc:creator>
      <dc:date>2020-12-23T23:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012222#M71185</link>
      <description>&lt;P&gt;And then just to follow up, I also snagged this piece of code from the sample to find the exact features.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;async countFeatures(graphic) {
  const query = this.layerView.createQuery();
  query.aggregateIds = [ graphic.getObjectId() ];
  // returns the features represented by the cluster with an ObjectID of 1
  const { features } = await this.layerView.queryFeatures(query);
  console.log(graphic.getObjectId())
  console.log(features.length)
}
&lt;/LI-CODE&gt;&lt;P&gt;I think clicked on these&amp;nbsp; two clusters in my map.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rogenjh_0-1608768217189.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2856iA0AD6CFDBE367EB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rogenjh_0-1608768217189.png" alt="rogenjh_0-1608768217189.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I came to this result. The first shows the ObjectId and the second shows the length of the returned attributes. I must be doing something wrong, but they are both returning the exact same features, and neither represents the actual features of the clicked graphic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rogenjh_1-1608768304902.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2857i08A0902A978C9298/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rogenjh_1-1608768304902.png" alt="rogenjh_1-1608768304902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 00:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012222#M71185</guid>
      <dc:creator>rogenjh</dc:creator>
      <dc:date>2020-12-24T00:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012624#M71220</link>
      <description>&lt;P&gt;Check the new feature in 4.18!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/get-underlying-object-id-graphics-in-cluster-programmatically/m-p/1011165#M71145" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-javascript/get-underlying-object-id-graphics-in-cluster-programmatically/m-p/1011165#M71145&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 08:55:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012624#M71220</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-12-29T08:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cluster points - identify</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012772#M71227</link>
      <description>&lt;P&gt;Yes it's working great now! I wasn't explicitly calling out the version 4.18 when loading modules, and so what was actually happening was my query was returning all points.&lt;/P&gt;&lt;P&gt;For anyone who might be seeing this after me, a good way to check is to inspect your symbol. If it doesn't have the "isAggregate" property on it, you aren't using 4.18.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 22:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/cluster-points-identify/m-p/1012772#M71227</guid>
      <dc:creator>rogenjh</dc:creator>
      <dc:date>2020-12-29T22:03:37Z</dc:date>
    </item>
  </channel>
</rss>

