Customizong Cluster Layer

The cluster layer is on by default, along with the Heatmap layer.

It shows aggregate values within a certain cluster radius, so changing the radius changes the aggregation grouping. Note that this radius is relative to the magnification on the map, so the number of aggregations change as you zoom in and out. The cluster color specifies the color of the circle that reports the number of items in each aggregate. At sufficiently high magnifications, when individual data points are visible as marks, the cluster layer supports click behavior.

To get to the options in the Cluster Layer menu, follow these steps:

  1. On the right side of Visual Designer, click the Settings menu.

    Settings menu of Visual Designer
  2. In the Settings menu, click Cluster Layer.

    cluster layer settings

Make the appropriate changes to the Cluster Layer options.

These options are:

Displaying the Cluster Layer

To show or hide the Cluster Layer, select or unselect Enable Cluster Layer option. This option is on by default.

showing cluster layer

After you disable the Cluster layer option, Google map renders only with the Heatmap layer option, the other default.

google cluster layer turned off

Similarly, the Mapbox map renders without the Cluster layer option.

mapbox cluster layer turned off

Changing the Cluster Color

To change the color of the Cluster Layer, change the value of the Cluster Color option, either by changing the hexadecimal value, or by selecting the new color from the color palette.

change cluster color

Note the cluster color change from the default of #ff9900 to custom #42a9b9 on the Google map rendering. We turned off the Heatmap layer option.

google cluster layer turned off

Similarly, note the color change for cluster layer on the Mapbox map.

mapbox cluster layer turned off

Changing the Cluster Radius

To change the clustering granularity for the map, you must adjust the Cluster Radius option. The default value is 80, and the minimum value is 30.

changing cluster radius

The default cluster radius value is 80. Compare the results of setting cluster radius on Google Map to 30, 60, 90, and 120.

google cluster layer turned off

Similarly, note the change for the same cluster sizes on the Mapbox map.

mapbox cluster layer turned off