docs: scene add getContainer method

This commit is contained in:
thinkinggis 2020-03-20 15:02:46 +08:00
parent e9892a2f7c
commit ad60db0855
4 changed files with 18 additions and 2 deletions

View File

@ -323,6 +323,14 @@ scene.setPitch(pitch);
scene.fitBounds([112, 32, 114, 35]);
```
### getContainer
获取地图容器 return htmlElement
```javascript
scene.getContainer();
```
### removeLayer
移除 layer

View File

@ -208,6 +208,14 @@ scene.getPitch();
return {number} pitch
### getContainer
获取地图容器 return htmlElement
```javascript
scene.getContainer();
```
### setMapStyle
参数:`style` {string} 地图样式 具体样式格式和各底图设置方法一致

View File

@ -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",

View File

@ -175,7 +175,7 @@
}
},
"resolutions": {
"../core-js": "3",
"core-js": "3",
"d3-array": "1"
},
"tnpm": {