supercluster 介绍
一个 非常 快速 的JavaScript库,用于浏览器和Node的地理空间点聚类。
安装
npm install supercluster
or Yarn
yarn add supercluster
使用
const index = new Supercluster({
radius: 40,
maxZoom: 16
});
index.load(points);
index.getClusters([-180,-85,180,85],2);
GitHub: https://github.com/mapbox/supercluster
网站描述: 用于浏览器和Node的非常 快速 地理空间点聚类库
supercluster官方网站
官方网站:
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did174747