openplans / shareabouts

Shareabouts is a mapping application for crowdsourced info gathering.
GNU General Public License v3.0
278 stars 149 forks source link

Add marker clustering #228

Closed BenSturmfels closed 12 months ago

BenSturmfels commented 1 year ago

We've found that marker clustering is very useful when there are lots of markers on the map.

BenSturmfels commented 1 year ago

Here's how it looks:

2023-08-28_14-52

2023-08-28_14-52_1

BenSturmfels commented 1 year ago

This is the Leaflet plugin used: https://www.npmjs.com/package/leaflet.markercluster

mjumbewu commented 12 months ago

Oof, I have a [perhaps unreasonable] visceral aversion to clustering by default on maps. But you're right, it would be useful in many cases. I think I'd be open to this if it were something that could be optionally enabled in the configuration.

BenSturmfels commented 12 months ago

Thanks, I completely understand and really just threw this one in in case it was of interest. Let's park it for now and if I get time I'll come back and make it configurable.