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 c84cfb6521
5 changed files with 19 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
title: Draw Component
order: 2
order: 3
---
地图绘制组件,支持点、线、面, 圆、矩形、的绘制编辑。

View File

@ -1,6 +1,6 @@
---
title: Draw 实例
order: 2
order: 3
---
### Draw Type

View File

@ -35,7 +35,8 @@ const control = new L7.Draw.DrawControl(scene, option);
#### scene
scene 对象
scene 对象, 绘制控件需要传入scene实例
#### options

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));
});
```
### 方法

View File

@ -1,2 +1,2 @@
const version = '2.2.0';
const version = '2.2.1';
export { version };