<?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 To get info from clasterTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1134933#M75981</link>
    <description>&lt;P&gt;Hi, guys, I have a claster template.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clasters.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31795i1C3EFED36BB1D2FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clasters.png" alt="clasters.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;There is a button in a clasterTemplate "to show objects", when you press it, you can see a list of features right in this template.&lt;BR /&gt;Bu I want to change button "to show objects" with my button "To show features in claster" and print to console every attribute of every feature.&lt;BR /&gt;How can I get a list of features with their attributes in this claster template? Is it possible?&lt;/P&gt;&lt;P&gt;const toShowFeaturesInClaster = (view) =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;console.log("clasterFeatures", view.popup.// any code here?);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;view.popup.on("trigger-action", (event)=&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(event.action.id === "clasterDetails") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;toShowFeaturesInClaster(view);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;})&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 12:59:58 GMT</pubDate>
    <dc:creator>AndyLoginov</dc:creator>
    <dc:date>2022-01-19T12:59:58Z</dc:date>
    <item>
      <title>To get info from clasterTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1134933#M75981</link>
      <description>&lt;P&gt;Hi, guys, I have a claster template.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clasters.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/31795i1C3EFED36BB1D2FB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clasters.png" alt="clasters.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;There is a button in a clasterTemplate "to show objects", when you press it, you can see a list of features right in this template.&lt;BR /&gt;Bu I want to change button "to show objects" with my button "To show features in claster" and print to console every attribute of every feature.&lt;BR /&gt;How can I get a list of features with their attributes in this claster template? Is it possible?&lt;/P&gt;&lt;P&gt;const toShowFeaturesInClaster = (view) =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;console.log("clasterFeatures", view.popup.// any code here?);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;view.popup.on("trigger-action", (event)=&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if(event.action.id === "clasterDetails") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;toShowFeaturesInClaster(view);&lt;BR /&gt;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;})&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 12:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1134933#M75981</guid>
      <dc:creator>AndyLoginov</dc:creator>
      <dc:date>2022-01-19T12:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: To get info from clasterTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1135059#M75995</link>
      <description>&lt;P&gt;Hey Andy,&lt;/P&gt;&lt;P&gt;I recommend you check out the Query Clusters sample -&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-query/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-query/.&lt;/A&gt;&amp;nbsp;It demonstrates how you can query all features within a cluster. Basically you will do something like this when the action executes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const query = layerView.createQuery();
query.aggregateIds = [graphic.getObjectId()];

const { features } = await layerView.queryFeatures(query);
// features are the features included in a cluster
// they contain the attributes&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 19 Jan 2022 17:29:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1135059#M75995</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-01-19T17:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: To get info from clasterTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1135344#M76011</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44467"&gt;@KristianEkenes&lt;/a&gt;&amp;nbsp;thank you so much for your answer, it was very helpful! I got what I need.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 08:56:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/to-get-info-from-clastertemplate/m-p/1135344#M76011</guid>
      <dc:creator>AndyLoginov</dc:creator>
      <dc:date>2022-01-20T08:56:50Z</dc:date>
    </item>
  </channel>
</rss>

