googlemaps / googlemaps/js-markerclusterer

how to set SuperClusterAlgorithm options?

Open
#581 3 comments 2 reactions 1 assignee Claimed by @amuramoto View on GitHub
Dominant language
TypeScript
Stars
293
Forks
104
Avg merge
3m
Merged PRs (30d)
18

Description

hey, i would like to use all supercluster options described here: https://github.com/googlemaps/js-markerclusterer/blob/68f10c5/src/algorithms/supercluster.ts#L33

for example, this is what worked for me, maxZoom and radius.
`const algorithm = new markerClusterer.SuperClusterAlgorithm({ maxZoom: 12, radius: 80 });`

but minPoints just doesn't work, if i set minPoints: 100, or minPoints: 1000, nothing happens.

`const algorithm = new markerClusterer.SuperClusterAlgorithm({ maxZoom: 12, radius: 80, minPoints: 100 });
var markerCluster = new markerClusterer.MarkerClusterer({
map,
markers,
algorithm
});`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.