I'm looking for something like K-Means for solid polygons clustering. K-Means clusters discret points. But I want to cluster solid polygons.[![expected polygon clustering][1]][1] I don't see any problems with implementing K-Means extension for this case but I want be sure before reinventing the wheel. So questions: 1. Are there any algorithms for solid polygon clustering? 2. Are there any implementations (preferably in javascript)? I looked at GIS clustering but everything I found is about polygon clustering for zooming. And polygon is a convex hull of geo markers and deeply inside it is about discret points clustering. [1]: https://i.sstatic.net/43RD0.png