Extended clustering

cluster, advanced

Shows the usage of custom classes for a fine grained control about the clustering behaviour.

Select the desired clustering strategy:




The vectorlayer in this example contains random data with an attribute "clazz" that can take the values 1, 2, 3 and 4. The features with clazz = 4 are considered more important than the others.

The radiobuttons on the right of the map control the cluster strategy to be applied to the features.

Hover over the features to get a short infomation about the feature or cluster of features.

View the strategy-cluster-extended.js source to see how this is done.