mirror of https://gitee.com/antv-l7/antv-l7
Merge pull request #100 from antvis/dev-map
docs(api): update setMapStyle API fix:#98
This commit is contained in:
commit
8fb28de4f9
|
@ -11,12 +11,12 @@ Powered by WebGL, the rendering technology of L7 supports fast and efficient ren
|
|||
L7 focuses on geographic data expressiveness,interaction 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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue