Skip to content

Commit

Permalink
docs: scene add getContainer method
Browse files Browse the repository at this point in the history
  • Loading branch information
lzxue committed Mar 20, 2020
1 parent d6c6694 commit 63433f5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions docs/api/scene.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,14 @@ scene.setPitch(pitch);
scene.fitBounds([112, 32, 114, 35]);
```

### getContainer

获取地图容器 return htmlElement

```javascript
scene.getContainer();
```

### removeLayer

移除 layer
Expand Down
8 changes: 8 additions & 0 deletions docs/api/scene.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,14 @@ scene.getPitch();

return {number} pitch

### getContainer

获取地图容器 return htmlElement

```javascript
scene.getContainer();
```

### setMapStyle

参数:`style` {string} 地图样式 具体样式格式和各底图设置方法一致
Expand Down
2 changes: 1 addition & 1 deletion examples/react/covid/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
"filename": "covid_grid.tsx",
"title": "世界地图网格背景",
"screenshot": "https://gw.alipayobjects.com/mdn/rms_855bab/afts/img/A*YYNtRZpxH_4AAAAAAAAAAABkARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_23a451/afts/img/A*CSUXTIYXXFwAAAAAAAAAAABkARQnAQ"
},
{
"filename": "covid_animate.tsx",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
}
},
"resolutions": {
"../core-js": "3",
"core-js": "3",
"d3-array": "1"
},
"tnpm": {
Expand Down

0 comments on commit 63433f5

Please sign in to comment.