I am building a map representing activities of some users and I would like to be able to clusterise on the number of different users being active on a spécific cluster. My activity features look like this:
const features = [
{user_id: "A", activity_id: 1},
{user_id: "A", activity_id: 2},
{user_id: "B", activity_id: 3},
{user_id: "C", activity_id: 4},
{user_id: "A", activity_id: 5},
]
I am using a ClassBreaksRenderer and I would like the color of the cluster to represent the number of unic 'user_id' for the cluster. The cluster count representing all the features above would be 3 (A + B + C).
AggregateFields with staticType 'count' doesn't allow to pass a groupBy field