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
{{ message }}
This repository was archived by the owner on Nov 27, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 27, 2019. It is now read-only.
Indeed, I encourage you to do some user testing and see whether your customers understand how marker clustering works. But my problem with it is that a map like this:
+----------+
|xxxxx |
|xxxx |
|xx x |
| xxxxx|
| x xxxx|
|x xxxxx|
+----------+
And even though the cluster markers have some number printed on them, the visual weight of the cluster is really misleading, especially when there are unclustered markers nearby.
You also have no idea how far the "cluster" reaches – is there a big blank gap between those two clusters, or do the boundaries really touch but the algorithm's just drawn an arbitrary watershed between the two?
To me, heatmaps solve both these problems. By taking crowded points and "stacking" them, rather than subsuming them into a nearby group, the crowd maintains its surface area. You can pick any particular grid square on the map and say instantly how many points are there, or very nearby (the nearness depends on the granularity of your heatmap). But the "hotspots" (ie: the points at which your cluster markers would originally have been drawn) are still instantly visible too.
We've been fiddling around trying to show both the clustered markers and the heatmap. So far the experiments suggest that if you simply enable both layers, the clustered marker layer basically obliterates the heatmap layer which is behind and you can't see any heatmap.
It's possible to fiddle with the CSS for the cluster-markers and reduce their opacity, and this could be worth investigating further. The relevant CSS selectors are .marker-cluster-small (and -medium and -large) for the outer bit of the circular cluster marker, and .marker-cluster-small div for the inner bit. Cranking all the opacities down looks a bit like this:
If we want a heatmap and markers, perhaps the simplest thing is to have a UI element (eg a 3-way selector) for choosing between single markers, clustered markers, and heatmap.
Activity
zarino commentedon Aug 20, 2014
Indeed, I encourage you to do some user testing and see whether your customers understand how marker clustering works. But my problem with it is that a map like this:
Suddenly gets clustered into a map like this:
And even though the cluster markers have some number printed on them, the visual weight of the cluster is really misleading, especially when there are unclustered markers nearby.
You also have no idea how far the "cluster" reaches – is there a big blank gap between those two clusters, or do the boundaries really touch but the algorithm's just drawn an arbitrary watershed between the two?
To me, heatmaps solve both these problems. By taking crowded points and "stacking" them, rather than subsuming them into a nearby group, the crowd maintains its surface area. You can pick any particular grid square on the map and say instantly how many points are there, or very nearby (the nearness depends on the granularity of your heatmap). But the "hotspots" (ie: the points at which your cluster markers would originally have been drawn) are still instantly visible too.
IanHopkinson commentedon Aug 22, 2014
I've implemented this in the
heatmapbranch,drj11 commentedon Aug 26, 2014
We've been fiddling around trying to show both the clustered markers and the heatmap. So far the experiments suggest that if you simply enable both layers, the clustered marker layer basically obliterates the heatmap layer which is behind and you can't see any heatmap.
It's possible to fiddle with the CSS for the cluster-markers and reduce their opacity, and this could be worth investigating further. The relevant CSS selectors are
.marker-cluster-small(and-mediumand-large) for the outer bit of the circular cluster marker, and.marker-cluster-small divfor the inner bit. Cranking all the opacities down looks a bit like this:drj11 commentedon Aug 26, 2014
If we want a heatmap and markers, perhaps the simplest thing is to have a UI element (eg a 3-way selector) for choosing between single markers, clustered markers, and heatmap.