Split Polygon Demo
This interactive map uses the Turf.js geometry library to demonstrate one way to split up a polygon into n separate polygons. It steps through:
- Create a bunch of random points
- Cluster the points using K-Means.
- Create a centroid for each cluster
- Use the centroid points to generate polygons using the Voronoi algorithm (also called Thiessen polygons).
Author: Gavin Rehkemper