I have marker clusters at multiple levels (a child cluster can have clusters and so on).
Now, when I click on a parent cluster, I want to apply a custom icon to all the child clusters of the parent cluster to the bottom of the child clusters.
I tried collecting all child clusters and applying icons to them but it does not work.
cluster.on('clusterclick', (e) => {
const childClusters = e.layer._childClusters;
for(const c of childClusters){
c.options.icon = this.getSelectedClusterIcon();
}
});