Skip to content

Calculate custom count in custom cluster icon  #875

@nsr092000

Description

@nsr092000

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions