Select to view content in your preferred language

Cluster labels are not visible for group layers which have sub group layers

416
0
03-03-2022 09:25 PM
ShefaliMantri
Regular Contributor

Hello Team,

We are ArcGIS API 4.19.

In project we dynamically turned ON/OFF cluster for a multiple group layers and that group layers has child layers (another group layer). For group child layers when cluster is ON for individual layer dynamically we set featureReduction as shown below code:

 
layer.set('featureReduction', {
      'type': "cluster",
      'labelingInfo': [{
        'labelExpressioncInfo': {
          'expression': "Text($feature.cluster_count, '#,###')"
        },
        'deconflictionStrategy': "none",
        'labelPlacement': "center-center"
      }],
      'clusterMinSize': "24px"
    });
 
labels not visible on clustr
 
Question:- How to handle cluster labels for  child group layers.
0 Kudos
0 Replies