From ad60db08558c2bf808448fa67b67856e162c4afe Mon Sep 17 00:00:00 2001 From: thinkinggis Date: Fri, 20 Mar 2020 15:02:46 +0800 Subject: [PATCH] docs: scene add getContainer method --- docs/api/scene.en.md | 8 ++++++++ docs/api/scene.zh.md | 8 ++++++++ examples/react/covid/demo/meta.json | 2 +- package.json | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/api/scene.en.md b/docs/api/scene.en.md index 1f06067347..d51f54401c 100644 --- a/docs/api/scene.en.md +++ b/docs/api/scene.en.md @@ -323,6 +323,14 @@ scene.setPitch(pitch); scene.fitBounds([112, 32, 114, 35]); ``` +### getContainer + +获取地图容器 return htmlElement + +```javascript +scene.getContainer(); +``` + ### removeLayer 移除 layer diff --git a/docs/api/scene.zh.md b/docs/api/scene.zh.md index 4f2b155313..5b40017b0c 100644 --- a/docs/api/scene.zh.md +++ b/docs/api/scene.zh.md @@ -208,6 +208,14 @@ scene.getPitch(); return {number} pitch +### getContainer + +获取地图容器 return htmlElement + +```javascript +scene.getContainer(); +``` + ### setMapStyle 参数:`style` {string} 地图样式 具体样式格式和各底图设置方法一致 diff --git a/examples/react/covid/demo/meta.json b/examples/react/covid/demo/meta.json index c0025388c6..d709dc6a38 100644 --- a/examples/react/covid/demo/meta.json +++ b/examples/react/covid/demo/meta.json @@ -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", diff --git a/package.json b/package.json index 224468f57b..d3d82d4224 100644 --- a/package.json +++ b/package.json @@ -175,7 +175,7 @@ } }, "resolutions": { - "../core-js": "3", + "core-js": "3", "d3-array": "1" }, "tnpm": {