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.
Hey Egor, your overall review of the situation in terms of what we support is correct - we currently only display clusters as configured in a webmap, as well as enabling the toggle on/off of clustering.
The remainder of the feature reduction API - that enables you to define renderers and aggregation properties at the SDK level - is on our "to do" list for reaching parity with the other SDKs. I have noted your interest and requirements and we will keep this in consideration for prioritizing exposing these capabilities. Will keep you updated. Thanks for raising.
For us this is an important feature. iOS and Google maps have this in many years. The users expect this!