I'm trying to add feature reduction / clustering for my feature layer but it's not working
My featureLayer looks like this:
new FeatureLayer({
objectIdField: 'OBJECTID',
geometryType: 'point',
source: [],
fields: [
{
name: 'OBJECTID',
type: 'oid',
},
{
name: 'ASSID',
type: 'string',
},
{
name: 'cluster_count',
type: 'integer',
},
],
featureReduction: {
type: 'cluster',
clusterRadius: '0.2', // using other values like 10 or 10px doesn't change the outcome
popupTemplate: {
title: 'Cluster summary',
content: 'This cluster represents {cluster_count} earthquakes.',
fieldInfos: [
{
fieldName: 'cluster_count',
format: {
places: 0,
digitSeparator: true,
},
},
],
},
},
renderer: {
id: 'simple',
type: 'simple',
symbol: {
type: 'point-3d', // autocasts as new PointSymbol3D()
symbolLayers: [
{
type: 'icon',
size: 10,
resource: { primitive: 'circle' },
material: { color: '#1B243D' },
},
],
},
}}); I'm using applyEdits to dynamic add or update features based on web socket data..

all dynamic added features have unique OBJECTID's so I have no idea why it's not clustering,
Should I recalculate the entire cluster after applyEdits?
Thanks