'Cluster labels are not visible - ArcGIS javascript API 4.19

When we remove any layer from the group layer after that label are not visible for all layers.

We tried to 'loadAll' method group layers still issue is there. I tried with ArcGIS API 4.22 also.

We created one POC on the same issue: Steps

  1. From Expand Legend (left side) click Group 1 and then click Group 2 once.

  2. Now expand TOC (right side) and expand predefined group layer and click on del button (red background) for layer 'Accidental Deaths'.

  3. Now re-open TOC and click on the cluster button for all layers.

You will observe labels are not visible on cluster points. Below issue screenshot enter image description here

Sample Code to reproduce the issue

https://stackblitz.com/edit/angular-cli-esri-map3-p7bpym?file=src%2Fapp%2Fesri-map%2Fesri-map.component.ts

Question- why labels are not visible when we remove one layer from the group layer.



Solution 1:[1]

It's a bug, and it's resolved on ArcGIS version 4.23.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Adam Genshaft