From 9ddf70296a33d4b444b09ab6d8a13b38ff2f8546 Mon Sep 17 00:00:00 2001 From: randysheng Date: Thu, 26 Dec 2019 19:52:52 +0800 Subject: [PATCH] fix(doc): add Scale example --- docs/api/component/control.zh.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/api/component/control.zh.md b/docs/api/component/control.zh.md index 6ea82d3ed8..8e3ca4401d 100644 --- a/docs/api/component/control.zh.md +++ b/docs/api/component/control.zh.md @@ -25,13 +25,13 @@ position: `string` 控件位置支持是个方位 ### 组件介绍 ``` -import { Scale Layers, Zoom } from '@antv/l7'; +import { Scale, Layers, Zoom } from '@antv/l7'; ``` #### Zoom -放大缩小组件 默认 左上角 +放大缩小组件 默认左上角 ```javascript const zoomControl = new Zoom({ @@ -43,14 +43,14 @@ scene.addControl(zoomControl); #### Scale -比例尺组件默认左下角 +比例尺组件 默认左下角 ```javascript -const zoomControl = new Zoom({ - position: 'topleft', +const scaleControl = new Scale({ + position: 'bottomleft', }); -scene.addControl(zoomControl); +scene.addControl(scaleControl); ``` #### Layers