Merge pull request #100 from antvis/dev-map

docs(api): update setMapStyle API fix:#98
This commit is contained in:
@thinkinggis 2019-11-28 15:06:26 +08:00 committed by GitHub
commit 8fb28de4f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 8 deletions

View File

@ -11,12 +11,12 @@ Powered by WebGL, the rendering technology of L7 supports fast and efficient ren
L7 focuses on geographic data expressivenessinteraction and design of geographic visualization layers. The basemaps on the platform are powered by third-party services
## l7 visualization demos
## 🌄 l7 visualization demos
![l7 demo](https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*SGU-QIZsnyoAAAAAAAAAAABkARQnAQ)
## Highlight features of L7 2.0
## 🌟 Highlight features of L7 2.0
🌏 Data-driven Visualization

View File

@ -206,7 +206,9 @@ scene.setCenter([lng,lat])
scene.setZoomAndCenter(zoom,center)
```
参数zoom {number}<br />center {LngLat}
参数:
- zoom {number}
- center {LngLat}
### setRotation
@ -235,14 +237,20 @@ scene.ZoomOUt()
scene.panTo(LngLat)
```
参数:`center` LngLat 中心位置坐标
参数:
- `center` LngLat 中心位置坐标
### panBy
以像素为单位沿X方向和Y方向移动地图
```javascript
scene.panBy(x,y)
```
参数:<br />`x` {number} 水平方向移动像素 向右为正方向<br />      `y` {number} 垂直方向移动像素 向下为正方向
参数:
- `x` {number} 水平方向移动像素 向右为正方向
- `y` {number} 垂直方向移动像素 向下为正方向
### setPitch
@ -251,11 +259,16 @@ scene.panBy(x,y)
scene.setPitch(pitch)
```
参数 :<br />   `pitch` {number}
参数 :
-  `pitch` {number}
### fitBounds
地图缩放到某个范围内<br />参数 :<br />  `extent` { array} 经纬度范围 [minlng,minlat,maxlng,maxlat]
地图缩放到某个范围内
参数 :
- `extent` { array} 经纬度范围 [minlng,minlat,maxlng,maxlat]
```javascript
scene.fitBounds([112,32,114,35]);
@ -270,7 +283,9 @@ scene.fitBounds([112,32,114,35]);
scene.removeLayer(layer)
```
参数 `layer` {Layer}
参数
- `layer` {Layer}
### getLayers
 获取所有的layer