docs: scene 增加 setzoom

This commit is contained in:
lzxue 2022-12-08 10:54:50 +08:00
parent ce3e78b2c6
commit 6b30bc72b9
1 changed files with 6 additions and 0 deletions

View File

@ -355,6 +355,12 @@ export interface ICameraOptions {
type ICenter = [number, number];
scene.setZoomAndCenter(zoom, center);
```
### setZoom(zoom: number): void 设置地图旋转
设置地图缩放等级
```javascript
scene.setZoom(10);
```
### setRotation(rotation: number): void 设置地图旋转