Clusterer | MapGL | 2GIS Documentation
MapGL JS API

Clusterer

A class that provides markers clustering functionality.

new constructor(map, userOptions)

Example:

const clusterer = new mapgl.Clusterer(map, {
    radius: 60
});
Parameters
map
mapgl.Map

The map instance.

userOptions
ClustererOptions

Clusterer initialization options.

Returns
Methods