mirror of https://gitee.com/antv-l7/antv-l7
docs: 更新scene 文档
This commit is contained in:
parent
48119b4227
commit
74956d69e1
|
@ -490,6 +490,7 @@ scene.setPitch(pitch);
|
|||
```
|
||||
|
||||
### setMapStatus 设置地图状态
|
||||
可用来关闭地图的一些交互操作
|
||||
|
||||
参数 :
|
||||
|
||||
|
@ -525,6 +526,49 @@ scene.fitBounds([
|
|||
]);
|
||||
```
|
||||
|
||||
### containerToLngLat
|
||||
|
||||
画布坐标转经纬度坐标
|
||||
|
||||
参数 :
|
||||
|
||||
- pixel 画布的坐标 [x ,y ] {array }
|
||||
```
|
||||
scene.pixelToLngLat([10,10]);
|
||||
```
|
||||
|
||||
### lngLatToContainer
|
||||
经纬度坐标转画布坐标
|
||||
|
||||
参数 :
|
||||
- lnglat 经纬度坐标 [lng,lat ] {array }
|
||||
|
||||
```
|
||||
scene.lngLatToPixel([120,10]);
|
||||
|
||||
```
|
||||
### pixelToLngLat
|
||||
像素坐标:不同级别下地图上某点的位置
|
||||
地图像素坐标转经纬度坐标
|
||||
|
||||
参数 :
|
||||
|
||||
- pixel 画布的坐标 [x ,y ] {array }
|
||||
```
|
||||
scene.pixelToLngLat([10,10]);
|
||||
```
|
||||
|
||||
### lngLatToPixel
|
||||
经纬度坐标转像素坐标
|
||||
|
||||
参数 :
|
||||
- lnglat 经纬度坐标 [lng,lat ] {array }
|
||||
|
||||
```
|
||||
scene.lngLatToPixel([120,10]);
|
||||
|
||||
```
|
||||
|
||||
### exportMap 导出地图图片
|
||||
|
||||
导出地图,目前仅支持导出可视化层,不支持底图导出
|
||||
|
|
Loading…
Reference in New Issue