I found a clustering sample in ArcGis website. Points clustering
However in the sample is passing in JSON data to the cluster layer in order to perform the clustering. Is there any method to do similar action but the source will be from a stream layer instead of a JSON data or feature layer?
Solved! Go to Solution.
Just to share my finding. I managed to apply clustering on stream layer itself by running the clustering function every time upon stream layer "update-end" event. All graphics in that stream layer need to pass into the clustering function in order to perform clustering.
This solution might not be perfect but it works for my current requirement.
Just to share my finding. I managed to apply clustering on stream layer itself by running the clustering function every time upon stream layer "update-end" event. All graphics in that stream layer need to pass into the clustering function in order to perform clustering.
This solution might not be perfect but it works for my current requirement.