Skip to content

Commit

Permalink
fix(doc): add Scale example
Browse files Browse the repository at this point in the history
  • Loading branch information
Randysheng committed Dec 26, 2019
1 parent f56327a commit 5e49ff2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/api/component/control.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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
Expand Down

0 comments on commit 5e49ff2

Please sign in to comment.