Clustering

The Clustering sample illustrates how to apply clustering to a data set containing a large number of armed events. Depending on the zoom level, the elements will be clustered appropriately, avoiding a cluttered view.

The sample contains a large number of armed events that took place in Africa. When a number of events are close together (in view-space), they become hard to distinguish. Therefore, a cluster is shown instead of the individual events.

It is also possible to compare the original model and the clustering transformed derivative by using the "ENABLE CLUSTERING" check box.

Creating a clustered data set through code is done by creating a ClusteringTransformer , and setting this transformer on a FeatureLayer .