Closed (works as designed)
Project:
Leaflet Markercluster
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2013 at 07:11 UTC
Updated:
12 Apr 2013 at 03:11 UTC
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
Comment #1
JSCSJSCS commentedHere is a video of the issue to hopefully make it easier to see what the problem is.
http://screenr.com/txz7
Comment #2
JSCSJSCS commentedI was in the githup issue queue and danzel informed me that the way it works is:
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.
Comment #3
rdeboerIf you use IP Geolocation Views and Maps with Leaflet MarkerCluster, then you can set the cluster radius through the UI, for each map/View.