Layer clustering example

You can activate clustering on a layer easily, look at the source of the layers: