googlemaps / googlemaps/js-markerclusterer
how to set SuperClusterAlgorithm options?
- 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
Assessment
This issue has not been assessed yet.