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
c84cfb6521
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Draw Component
|
||||
order: 2
|
||||
order: 3
|
||||
---
|
||||
|
||||
地图绘制组件,支持点、线、面, 圆、矩形、的绘制编辑。
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
title: Draw 实例
|
||||
order: 2
|
||||
order: 3
|
||||
---
|
||||
|
||||
### Draw Type
|
||||
|
|
|
@ -35,7 +35,8 @@ const control = new L7.Draw.DrawControl(scene, option);
|
|||
|
||||
#### scene
|
||||
|
||||
scene 对象
|
||||
scene 对象, 绘制控件需要传入scene实例
|
||||
|
||||
|
||||
#### options
|
||||
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
### 方法
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
const version = '2.2.0';
|
||||
const version = '2.2.1';
|
||||
export { version };
|
||||
|
|
Loading…
Reference in New Issue