All examples By author By category About

calvinmetcalf

How do you cluster a million points?

By default with start with 10,000 points on the map, you can add more with the button in the lower left, if you have trouble with focus on the field to adjust the number of points try right clicking, while the styles are based off Danzel's awesome plugin, behind the scenes its not. What it's doing is dividing the view into boxes approximately 200px on a side and clustering everything in that box, hence why many of them look so square.

At this point your like, YOU LIED there are only 10,000 points not 1,000,000. This is because the thing that takes the most time is building an index of the points, something makes me think most people wouldn't find a blank map for the first 4 minutes all that interesting. If you want you can add 2 zeros to the end of the add go ahead, or you can add 1 and click your way up. Note that while it takes a while your browser doesn't freeze, or if it does it's from an unrelated problem.