You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
If you would like to upvote the priority of this issue, please comment below or react on the original post above with 👍 so we can see what is popular when we triage.
@nsr092000 Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:
Please give me any solution or other way to solve this, that I am missing out on.
I just encountered this issue maintaining a legacy project. Here's a temporary workaround until we can access a cluster's marker array during render, or can use a custom calculation function for labeling.
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.
The text was updated successfully, but these errors were encountered: