There is a function in the map to group the markers into clusters. Would it be possible to add a parameter to make it more precise, i.e. not only based on the zoom level, but also on the distance between tow markers.
Here is an example: In the map I'm displaying, at zoom level x (which is lower than the zoom level I set up in the map for the cluster), there are 2 markers very very close. I would like them to be into a cluster, because I can see that there are 2 markers, there are two close.
If I increment the parameter for the cluster in order to solve this, then some of my markers which are far away from each others will also be included in the cluster.
I think it should be possible to do a function to put into clusters only markers which are really closed to each others and that cannot be displayed on the map, rather than based on the zoom level (or let the user decide.
4 years 8 months ago - 4 years 8 months ago#2376by Dima
Dima replied the topic: cluster of markers
I had plans to add parameters for clusterer, but there was no user's request.
You are the first
OK. You can use your patch, after my holiday break I'll add parameters to do that, but didn't decide how it will be more user friendly, because it is only one option for clusterer, and it has more
Don't forget support my developments: post review in JED, donate
I think it would be nice in this case to put the parameters as textfields, with already a value inside which is the default value of Google (as advanced parameters). Then if the user want to chenge them, he can just change the value. In the tool tip, you can also write the default value, then people can roll out in case of issue to the google default value.