Merge pull request #135 from Randysheng/patch-2

fix(doc): add Scale example
This commit is contained in:
@thinkinggis 2019-12-27 11:37:44 +08:00 committed by GitHub
commit 7cf4055f0c
1 changed files with 6 additions and 6 deletions

View File

@ -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