mirror of https://gitee.com/antv-l7/antv-l7
fix(doc): add Scale example
This commit is contained in:
parent
f56327a0da
commit
5e49ff276d
|
@ -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
|
```javascript
|
||||||
const zoomControl = new Zoom({
|
const scaleControl = new Scale({
|
||||||
position: 'topleft',
|
position: 'bottomleft',
|
||||||
});
|
});
|
||||||
|
|
||||||
scene.addControl(zoomControl);
|
scene.addControl(scaleControl);
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Layers
|
#### Layers
|
||||||
|
|
Loading…
Reference in New Issue