Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Map Clustering Is Not My Favorite (greg.technology)
5 points by evakhoury 1 day ago | hide | past | favorite | 1 comment
 help



Same here. I ran into a similar situation mapping municipal data (https://wwwww.buffalo.mandelics.com/w5/around-buffalo.html) plus I needed to be able to click a point and see the event(s) behind it.

I ended up doing a form of clustering:

- at low and medium zoom: quantize events into a grid, take each cell's centroid, and make more populous circles bigger on a logarithmic scale - clicking lists all relevant events - double-clicking zooms in a level - at high enough zoom, break up the multi-event circles by displacing them along a hexagonal spiral

I still get some overlaps from nearby centroids and overlapping hexes, but generally every point can be reached without infinite zoom.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: