<?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: Show cluster count 1 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-cluster-count-1/m-p/1199116#M78164</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/591918"&gt;@AntonioGallo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The configuration API for cluster labels and popups is very similar to the layer labels and popups. To label clusters and individual features, you need to use the following:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layer.featureReduction = {
  type: "cluster",
  labelingInfo: [
   // define label classes here for clusters
  ]
};

layer.labelingInfo = [{
  // define label classes here for individual features
}];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sample application does both, though I admit the label classes are a bit more complex as they handle different styles and label placements at various scale levels:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-filter-slider/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-filter-slider/&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;See the image below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_0-1659554403332.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47721i299D7E0B31ED63B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_0-1659554403332.png" alt="KristianEkenes_0-1659554403332.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The green point indicated by the red arrow is an individual power plant. It is not labeled with a "1", but rather with the information for the plant itself in the &lt;STRONG&gt;layer.lablingInfo&lt;/STRONG&gt; property (since it is not a cluster). The other blue symbols are clusters of 4 and 5 power plants respectively. Those labels are defined on the &lt;STRONG&gt;layer.featureReduction.labelingInfo&lt;/STRONG&gt; property. Notice the label placement is different. That is because each label comes from a different label class, which is defined based on the average size of power plant in the cluster.&lt;/P&gt;&lt;P&gt;Hopefully that helps.&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Wed, 03 Aug 2022 19:22:47 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2022-08-03T19:22:47Z</dc:date>
    <item>
      <title>Show cluster count 1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-cluster-count-1/m-p/1179709#M77579</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;i am using GeoJSONLayer&amp;nbsp; with featureReduction to show the cluster in the Map.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to show on the map also the cluster that count 1.&amp;nbsp;&lt;BR /&gt;I read&amp;nbsp; that: "There's no such thing as clusters with a count of one. If a feature does not belong to a cluster, it is rendered by itself according the configuration defined in the layer's renderer."&lt;/P&gt;&lt;P&gt;However i do not understand how to define the configuration in the layer's renderer to show point do not clustered on the map.&lt;/P&gt;&lt;P&gt;I am using version javascript 4.23&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 03:43:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-cluster-count-1/m-p/1179709#M77579</guid>
      <dc:creator>AntonioGallo</dc:creator>
      <dc:date>2022-06-03T03:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show cluster count 1</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-cluster-count-1/m-p/1199116#M78164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/591918"&gt;@AntonioGallo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The configuration API for cluster labels and popups is very similar to the layer labels and popups. To label clusters and individual features, you need to use the following:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layer.featureReduction = {
  type: "cluster",
  labelingInfo: [
   // define label classes here for clusters
  ]
};

layer.labelingInfo = [{
  // define label classes here for individual features
}];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sample application does both, though I admit the label classes are a bit more complex as they handle different styles and label placements at various scale levels:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-filter-slider/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurereduction-cluster-filter-slider/&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;See the image below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KristianEkenes_0-1659554403332.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/47721i299D7E0B31ED63B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="KristianEkenes_0-1659554403332.png" alt="KristianEkenes_0-1659554403332.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The green point indicated by the red arrow is an individual power plant. It is not labeled with a "1", but rather with the information for the plant itself in the &lt;STRONG&gt;layer.lablingInfo&lt;/STRONG&gt; property (since it is not a cluster). The other blue symbols are clusters of 4 and 5 power plants respectively. Those labels are defined on the &lt;STRONG&gt;layer.featureReduction.labelingInfo&lt;/STRONG&gt; property. Notice the label placement is different. That is because each label comes from a different label class, which is defined based on the average size of power plant in the cluster.&lt;/P&gt;&lt;P&gt;Hopefully that helps.&lt;/P&gt;&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 19:22:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/show-cluster-count-1/m-p/1199116#M78164</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-08-03T19:22:47Z</dc:date>
    </item>
  </channel>
</rss>

