Well I read a bit of the code and finally understood that the way I thought the clustering was supposed to work was wrong.
If I understand well actually, the click on the cluster should open the popup if max zoom defined in the option is reached and there is still more than 1 user in the cluster, else it should zoom, right ?
Based on that, I tried to understand how to achieve what I want : open the popup on click whatever the zoom is. So I set Zoom, Max Zoom and Min Zoom to the same value thinking that would get the popup to open on click on the cluster no matter if users in the cluster had the exact same address or not. But even that way, the popup open only if all users in the cluster have exactly the same address. The only change is that the zoom on double click do not work anymore as Max Zoom is already reached.
I then tried to modify the code changing :
if (zoom >= maxZoom && cClusterIcon.cluster_.markers_.length > 1) {
return mc.onClick(cClusterIcon);
}
To : if (cClusterIcon.cluster_.markers_.length > 1) {
return mc.onClick(cClusterIcon);
}
But it's not working either, in fact it does not change anything
Please, give me some help on that. Exemple is here :
dev11.anw-sandbox.ch/annuaire.html
, the bottom cluster contains two users on the same address and the top one two users with a slightly different address.
The zoom are set in order that the top cluster won't be separated when reaching max zoom and you will see the click then does not open the popup on that one. And on the bottom cluster, the click opens the popup even if on min zoom what I would like to have for all clusters.
Another suitable option would be having the zoom triggered on simple click and not on double click so visitor do not thinks it's working only for some clusters and not for other. But in any case, when max zoom is reached the popup should open to show the list.
Thanks in advance for your help.