mirror of https://gitee.com/antv-l7/antv-l7
Merge branch 'draw' of github.com:antvis/L7 into draw
This commit is contained in:
commit
54ce0a59b5
|
@ -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));
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
### 方法
|
||||
|
||||
|
|
Loading…
Reference in New Issue