Removing old point cluster graphic

Discussion created by betsyjsg on Apr 23, 2013
Latest reply on Feb 13, 2014 by tligon
Thanks to Derek's excellent example last week of using point clustering on a feature map, I've been able to implement this function into a map I'm developing. The only problem I can't figure out is how to dismiss an old point cluster and get a new one generated. I've looked at the ClusterLayer.js and saw a function called clear so I added that to my code ... clusterLayer.clear(). The cluster graphic gets removed but a new cluster graphic isn't generated. I just have a blank map with no clusters. I know I have values available for clustering because when I do a clusterLayer.length, I get a count of the records found.  It just won't generate a new cluster graphic. Has anyone tried to dismiss an old cluster graphic and get a new one?