style: lint style

This commit is contained in:
shihui 2021-11-25 15:37:02 +08:00
parent 130c16fa67
commit 90de723a46
1 changed files with 5 additions and 7 deletions

View File

@ -523,7 +523,7 @@ scene.setMapStatus({ dragEnable: false });
- `color` {string} - `color` {string}
```javascript ```javascript
scene.setBgColor([10,10]); scene.setBgColor('#f00');
``` ```
### fitBounds 设置地图缩放范围 ### fitBounds 设置地图缩放范围
@ -550,7 +550,7 @@ scene.fitBounds([
- `pixel` 画布的坐标 [x ,y ] {array } - `pixel` 画布的坐标 [x ,y ] {array }
```javascript ```javascript
scene.pixelToLngLat([10,10]); scene.pixelToLngLat([10, 10]);
``` ```
### lngLatToContainer 经纬度转画布坐标 ### lngLatToContainer 经纬度转画布坐标
@ -562,8 +562,7 @@ scene.pixelToLngLat([10,10]);
- `lnglat` 经纬度坐标 [lng,lat ] {array } - `lnglat` 经纬度坐标 [lng,lat ] {array }
```javascript ```javascript
scene.lngLatToPixel([120,10]); scene.lngLatToPixel([120, 10]);
``` ```
### pixelToLngLat 像素坐标转经纬度 ### pixelToLngLat 像素坐标转经纬度
@ -576,7 +575,7 @@ scene.lngLatToPixel([120,10]);
- `pixel` 画布的坐标 [x ,y ] {array } - `pixel` 画布的坐标 [x ,y ] {array }
```javascript ```javascript
scene.pixelToLngLat([10,10]); scene.pixelToLngLat([10, 10]);
``` ```
### lngLatToPixel 经纬度转像素坐标 ### lngLatToPixel 经纬度转像素坐标
@ -588,8 +587,7 @@ scene.pixelToLngLat([10,10]);
- `lnglat` 经纬度坐标 [lng,lat ] {array } - `lnglat` 经纬度坐标 [lng,lat ] {array }
```javascript ```javascript
scene.lngLatToPixel([120,10]); scene.lngLatToPixel([120, 10]);
``` ```
### exportMap 导出地图图片 ### exportMap 导出地图图片