ClusterStyle | MapGL | 2GIS Documentation

ClusterStyle

An object describing a cluster style.

Properties
number[]

The position of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the cluster's geographical location. Centered by default if anchor is not specified and custom icon is provided.

number[]

Cluster icon anchor in hovered state.

undefinedstring

Cluster icon URL in hovered state.

number[]

Cluster icon size [width, height] in hovered state in pixels.

undefinedstring

Cluster icon URL.

number[]

The position in pixels of the "tip" of the cluster label relative to its center.

undefinedstring

Label's text color of a cluster in CSS hexadecimal RGB format (e.g. #ff0000).

undefinednumber

Label's text font size of a cluster.

undefinedstring

Label's text background color of a cluster in CSS hexadecimal RGB format (e.g. #ff0000).

undefinednumber

Label's text background radius of a cluster. The background is set for each letter of the text.

undefinednumber

Label's text letter spacing of a cluster.

undefinedstring

Label's text of a cluster. By default, it's the size of the cluster.

number[]

Cluster icon size [width, height] in pixels.