We need an ability to enable clustering for point features that come from arbitrary feature layer. I've checked sample code on this, but it doesn't meet our needs since it uses feature reduction from webmap where feature layer resides.
Some requirements:
- it should be based on distance between points
- need an ability to define some minimal cluster symbol (say, circle of predefined color with features count inside it)
- enable/disable clustering based on zoom level
- support single clustering for several feature layers added on map simultaneously
Would be good to have:
- zooming to cluster should show animated re-clustering
Here is how should it look like. Please also find attached video.

Here are the screens for several layers added. Arrows show places where single cluster is expected.

