I followed This API Tutorial to create Cluster Points on the map. Now I would like to have a function to hide them. I already tried like?
but it didn't work! I also tried to bind the clusterLayer to a GraphicsLayer like below
var clayer = new esri.layers.GraphicsLayer(); clayer.add(clusterLayer); clayer.hide();
but still not working
After hours of working I find a sample on google at this Demo doing the job of switching between Points and Cluster but it is supper complicated to me!
Can you please let me know how I can hide and show the cluster layer on demand?