supercluster地理空间点聚类
supercluster 是一个用于浏览器和 Node 的非常快速的地理空间点聚类库。
<script src="https://unpkg.com/supercluster@7.1.2/dist/supercluster.min.js"></script>
const index = new Supercluster({
radius: 40,
maxZoom: 16
});
index.load(points);
index.getClusters([-180, -85, 180, 85], 2);
在 Leaflet 中对 600 万个点进行聚类:
评论
