Merge branch 'draw' of github.com:antvis/L7 into draw

This commit is contained in:
thinkinggis 2020-04-27 10:57:25 +08:00
commit 54ce0a59b5
1 changed files with 14 additions and 0 deletions

View File

@ -65,6 +65,20 @@ layer.source(data);
```javascript
layer.setData(data);
```
### 方法
#### getClustersLeaves(cluster_id)
聚合图使用,获取聚合节点的原始数据
参数:
id 聚合节点的 cluster_id
```javascript
layer.on('click', (e) => {
console.log(source.getClustersLeaves(e.feature.cluster_id));
});
```
### 方法