I don't know why, but some clusters do not expand. When clicked, the maps get adjusted to make the cluster marker be the center of the map, but subsequent clicks to nothing. I can use the zoom control to open a cluster (once centered), but that is not the obvious UX.

Example, I have a view that shows a cluster of 78 nodes, just a bit off to the right of center of the map. There are other clusters on the same map that behave as expected (click to expand), but when I click on the cluster marker, the cluster map is redrawn with the cluster marker in the center of the map, but does not expand. Subsequent clicks on the cluster marker have no effect.

Comments

JSCSJSCS’s picture

Here is a video of the issue to hopefully make it easier to see what the problem is.

http://screenr.com/txz7

JSCSJSCS’s picture

Status: Active » Closed (works as designed)

I was in the githup issue queue and danzel informed me that the way it works is:

When you click a cluster it works out the bounds covered by its child markers, then zooms to those bounds. In your case, the bounds of those markers is so big, that to zoom to those bounds means that we don't zoom down at all.

Try make your map bigger or reduce maxClusterRadius

I was using the https://github.com/Leaflet/Leaflet.markercluster repo commit with SHA of 143e0bf3c5d635ae3da6f83bc308cc3f3ae853f5

danzel said he will leave the issue open until he works out a way to add the feature so that clicking on a cluster will expand or spiderfy or both.

Until then, if you come across this issue, do a hook override and change that setting in a custom module to 50 or 60 instead of the default of 80.

And by the way, if you are using the leaflet_more_maps module, you will need to modify that setting for every map you may want to use.

I am changing this issue to "works as designed" because the issue is with the underlying library javascript code, not this module's implementation of it.

rdeboer’s picture

If you use IP Geolocation Views and Maps with Leaflet MarkerCluster, then you can set the cluster radius through the UI, for each map/View.