fix(doc): add Scale example

This commit is contained in:
randysheng 2019-12-26 19:52:52 +08:00
parent 68a1af7607
commit 9ddf70296a
1 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@ position: `string` 控件位置支持是个方位
### 组件介绍
```
import { Scale Layers, Zoom } from '@antv/l7';
import { Scale, Layers, Zoom } from '@antv/l7';
```
@ -46,11 +46,11 @@ scene.addControl(zoomControl);
比例尺组件 默认左下角
```javascript
const zoomControl = new Zoom({
position: 'topleft',
const scaleControl = new Scale({
position: 'bottomleft',
});
scene.addControl(zoomControl);
scene.addControl(scaleControl);
```
#### Layers