<?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: ArcGIS Javascript adding an extra row to featurereduction popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256459#M80206</link>
    <description>&lt;P&gt;That syntax was very annoying.. It was counting the summary and it makes it appear as if there were an additional feature in the scroll. I ended up bypassing the browse features button with view.popup.open for the cluster features and the popup template for the single points!&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 12:48:29 GMT</pubDate>
    <dc:creator>GeospatialEnterprise</dc:creator>
    <dc:date>2023-02-09T12:48:29Z</dc:date>
    <item>
      <title>ArcGIS Javascript adding an extra row to featurereduction popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256322#M80197</link>
      <description>&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;geoJSONLayer.featureReduction = {
          type: "cluster",
          outFields: ["*"],
          popupTemplate: template,
          clusterRadius: 25,
          clusterMinSize: "50px",
          clusterMaxSize: "50px,
          labelingInfo: [
            {
              deconflictionStrategy: "none",
              labelExpressionInfo: {
                expression: "Text($feature.cluster_count, '#,###')",
              },
              symbol: {
                type: "text",
                color: "white",
                font: {
                  weight: "bold",
                  family: "Noto Sans",
                  size: "14px",
                },
                haloSize: 1,
                haloColor: "black",
                yoffset: "-8pt",
              },
              labelPlacement: "center-center",
            },
          ],
        };&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-08 165057.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/62407i32407E05B28F477C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-02-08 165057.png" alt="Screenshot 2023-02-08 165057.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 12:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256322#M80197</guid>
      <dc:creator>GeospatialEnterprise</dc:creator>
      <dc:date>2023-02-09T12:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Javascript adding an extra row to featurereduction popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256330#M80199</link>
      <description>&lt;P&gt;Does your PopupTemplate have a title property? If it doesn't, you get this "Untitled" text for the summary row. You can review this sample to help.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurereduction-cluster&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256330#M80199</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2023-02-08T22:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Javascript adding an extra row to featurereduction popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256459#M80206</link>
      <description>&lt;P&gt;That syntax was very annoying.. It was counting the summary and it makes it appear as if there were an additional feature in the scroll. I ended up bypassing the browse features button with view.popup.open for the cluster features and the popup template for the single points!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 12:48:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256459#M80206</guid>
      <dc:creator>GeospatialEnterprise</dc:creator>
      <dc:date>2023-02-09T12:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Javascript adding an extra row to featurereduction popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256460#M80207</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.on("click", async (event) =&amp;gt; {
          const layerView = await view.whenLayerView(geoJSONLayer);
          const response = await view.hitTest(event, { include: geoJSONLayer });
          console.log(response);
          const cluster = response.results[0].graphic;
      
          const id = cluster.getObjectId();
          const q = layerView.createQuery();
          q.aggregateIds = [id];
          const { features } = await layerView.queryFeatures(q);
          //console.log(features.results[0]);
          if (features.length === 0) {
            geoJSONLayer.popupTemplate = template;
          } else {
            view.popup.open({ features });
          }
          
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Here's the code to how I solved it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 12:53:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-javascript-adding-an-extra-row-to/m-p/1256460#M80207</guid>
      <dc:creator>GeospatialEnterprise</dc:creator>
      <dc:date>2023-02-09T12:53:30Z</dc:date>
    </item>
  </channel>
</rss>

