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 万个点进行聚类:

© 版权声明
THE END
喜欢就支持一下吧
点赞149 分享
I'm not lazy, I'm on energy saving mode.
我不懒,我只是开启了节能模式