<?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 [4.30] Cluster count incorrect after using applyEdits on a feature layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1518354#M85299</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm running into an issue where cluster counts are incorrect after using applyEdits on a feature layer&amp;nbsp;at certain zoom levels. The feature layer uses the cluster feature reduction method.&lt;/P&gt;&lt;P&gt;For example, I start with a cluster of 15 features. There's a refresh that occurs every 60 seconds, which updates the properties of each feature in the layer. The applyEdits function is called and these updated features are provided to the updateFeatures argument like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; await featureLayer.applyEdits({
     updateFeatures: updatedFeatures
 });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the refresh completes, all appears to be well. The cluster of 15 features is still there. If I zoom in, it breaks into two clusters of 4 and 11.&lt;EM&gt;&amp;nbsp;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;/EM&gt;, the cluster labels for these will say 8 and 22. If I zoom in a little bit more, the cluster labels go back to their correct count. If I zoom in again, they switch back to the incorrect count, and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems that zooming in and out alternates between cluster labels being correct and incorrect. This only happens after using applyEdits during the refresh. When the labels are incorrect, their value usually double the correct amount. I can click the cluster with a label of 22 and see that it actually contains 11 via the popup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue, or am I perhaps doing something incorrectly? I have screenshots of this behavior, but it seems I'm not allowed to post images. I can also provide more code if needed, but that could take a while to adapt for a post, so I'm trying to see if there's any "easy" answer first. Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 13:56:56 GMT</pubDate>
    <dc:creator>RyanMoser</dc:creator>
    <dc:date>2024-08-12T13:56:56Z</dc:date>
    <item>
      <title>[4.30] Cluster count incorrect after using applyEdits on a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1518354#M85299</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm running into an issue where cluster counts are incorrect after using applyEdits on a feature layer&amp;nbsp;at certain zoom levels. The feature layer uses the cluster feature reduction method.&lt;/P&gt;&lt;P&gt;For example, I start with a cluster of 15 features. There's a refresh that occurs every 60 seconds, which updates the properties of each feature in the layer. The applyEdits function is called and these updated features are provided to the updateFeatures argument like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt; await featureLayer.applyEdits({
     updateFeatures: updatedFeatures
 });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the refresh completes, all appears to be well. The cluster of 15 features is still there. If I zoom in, it breaks into two clusters of 4 and 11.&lt;EM&gt;&amp;nbsp;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;/EM&gt;, the cluster labels for these will say 8 and 22. If I zoom in a little bit more, the cluster labels go back to their correct count. If I zoom in again, they switch back to the incorrect count, and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it seems that zooming in and out alternates between cluster labels being correct and incorrect. This only happens after using applyEdits during the refresh. When the labels are incorrect, their value usually double the correct amount. I can click the cluster with a label of 22 and see that it actually contains 11 via the popup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a known issue, or am I perhaps doing something incorrectly? I have screenshots of this behavior, but it seems I'm not allowed to post images. I can also provide more code if needed, but that could take a while to adapt for a post, so I'm trying to see if there's any "easy" answer first. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 13:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1518354#M85299</guid>
      <dc:creator>RyanMoser</dc:creator>
      <dc:date>2024-08-12T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: [4.30] Cluster count incorrect after using applyEdits on a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1522952#M85394</link>
      <description>&lt;P&gt;I have reproduced this behavior in a small CodePen application:&amp;nbsp;&lt;A href="https://codepen.io/rmoser3/pen/poXpKxm" target="_blank" rel="noopener"&gt;https://codepen.io/rmoser3/pen/poXpKxm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This application creates a feature layer with cluster feature reduction. To reproduce the bug:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Navigate to the feature set. They should be visible from the start, but if not, they're in the US state of Georgia.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;There's a refresh that occurs every 10 seconds. This refresh simply updates the name of one of the features and then calls applyEdits.&amp;nbsp;&lt;STRONG&gt;After&lt;/STRONG&gt; the first refresh, start zooming all the way in (until each feature is on its own) and then all the way back out (until one cluster is visible). If it doesn't happen the first time, keep zooming in and out, you will eventually see an incorrect value. There are 5 features. Any combination that doesn't equal 5 is incorrect.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Can anyone please tell me if this is something I'm doing wrong or if this is a defect in the API?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 15:32:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1522952#M85394</guid>
      <dc:creator>RyanMoser</dc:creator>
      <dc:date>2024-08-16T15:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: [4.30] Cluster count incorrect after using applyEdits on a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1524219#M85416</link>
      <description>&lt;P&gt;Hi Ryan, It looks like I'm having the the same issues?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-clustering-count-not-correct-bug/m-p/1524217#M85415" target="_blank"&gt;https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-clustering-count-not-correct-bug/m-p/1524217#M85415&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope they will find a solution!&lt;/P&gt;&lt;P&gt;It works with version 4.29&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 08:35:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1524219#M85416</guid>
      <dc:creator>michaelpoa</dc:creator>
      <dc:date>2024-08-20T08:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: [4.30] Cluster count incorrect after using applyEdits on a feature layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1524653#M85442</link>
      <description>&lt;P&gt;Thanks for the response! Glad we're not the only one. Will definitely keep an eye out for the resolution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 19:22:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/4-30-cluster-count-incorrect-after-using/m-p/1524653#M85442</guid>
      <dc:creator>RyanMoser</dc:creator>
      <dc:date>2024-08-20T19:22:49Z</dc:date>
    </item>
  </channel>
</rss>

