mapseed/platform

Spiderfying and clustering for CPS flavor

goldpbear opened this issue · 3 comments

The CPS flavor will likely have numerous groups of points that are very close to one another. We should "spiderfy" these points (i.e. place a small amount of distance between nearby points) as they're added to the map to prevent usability issues stemming from overlapping icons.

We should also cluster points together at low zoom levels.

Not sure if this helps, but I know the leaflet marker cluster plugin "spirals" a cluster of points when it is clicked on. I wonder if it has a config option to improve this feature, or "spiderify" the points instead.

Here's an example:
out-1

Yeah, I was hoping that plugin would allow us to just tweak the threshold that triggers spiderfying. I think the spiral feature on raingardens is a form of spiderfying in action for points directly on top of one another.

Also, that's a ton of raingardens on top of each other.