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
暂无评论内容