diff --git a/docs/api/draw/api.en.md b/docs/api/draw/api.en.md index ad6647c727..bc2cb774ff 100644 --- a/docs/api/draw/api.en.md +++ b/docs/api/draw/api.en.md @@ -1,6 +1,6 @@ --- title: Draw Component -order: 2 +order: 3 --- 地图绘制组件,支持点、线、面, 圆、矩形、的绘制编辑。 diff --git a/docs/api/draw/api.zh.md b/docs/api/draw/api.zh.md index cc4d0a0961..e6a1afbf4b 100644 --- a/docs/api/draw/api.zh.md +++ b/docs/api/draw/api.zh.md @@ -1,6 +1,6 @@ --- title: Draw 实例 -order: 2 +order: 3 --- ### Draw Type diff --git a/docs/api/draw/draw_control.en.md b/docs/api/draw/draw_control.en.md index c966124024..40abe28c43 100644 --- a/docs/api/draw/draw_control.en.md +++ b/docs/api/draw/draw_control.en.md @@ -35,7 +35,8 @@ const control = new L7.Draw.DrawControl(scene, option); #### scene -scene 对象 +scene 对象, 绘制控件需要传入scene实例 + #### options diff --git a/docs/api/source/source.zh.md b/docs/api/source/source.zh.md index 5865916b1c..ee629a9a6f 100644 --- a/docs/api/source/source.zh.md +++ b/docs/api/source/source.zh.md @@ -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)); + }); +``` + ### 方法 diff --git a/packages/l7/src/version.ts b/packages/l7/src/version.ts index 93b60b4326..039f03b62a 100644 --- a/packages/l7/src/version.ts +++ b/packages/l7/src/version.ts @@ -1,2 +1,2 @@ -const version = '2.2.0'; +const version = '2.2.1'; export { version };