googlemaps / googlemaps/js-markerclusterer

Calculate custom count in custom cluster icon

Open
#875 2 comments 3 reactions 0 assignees View on GitHub
triage me type: bug
Dominant language
TypeScript
Stars
293
Forks
104
Avg merge
3m
Merged PRs (30d)
18

Description

In the previous library, @googlemaps/markerclustererplus , has a feature to calculate custom count on cluster

const calculator = (markers)=>{
// By default I got markers listing .....
}

FOR EXAMPLE:-
const options = {
calculator: calculator,
};
const mc = new MarkerClusterer(map, [], options);

but on this new library, there is a render method that helps to calculate the count on the cluster but I don't want to show a count of markers present on the cluster.

**DOUBT**:- **I am showing the count on a marker by some calculation when it clusters, I want to show the sum of the calculation count, not the marker count ...**

Please give me any solution or other way to solve this, that I am missing out on.

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.