mirror of https://gitee.com/antv-l7/antv-l7
docs: 场景 Scene API 补充 addPopup 和 removePopup 方法说明 (#1528)
Co-authored-by: yanxiong <oujinhui.ojh@antgroup.com>
This commit is contained in:
parent
8e3f525e16
commit
15e653a6d8
|
@ -75,6 +75,7 @@
|
|||
"core-js": "3",
|
||||
"coveralls": "^3.0.7",
|
||||
"cross-env": "^7.0.2",
|
||||
"crypto-js": "^4.1.1",
|
||||
"css-loader": "^3.2.0",
|
||||
"cz-conventional-changelog": "^3.0.2",
|
||||
"dat.gui": "^0.7.2",
|
||||
|
@ -100,6 +101,7 @@
|
|||
"jest-file-loader": "^1.0.2",
|
||||
"jest-less-loader": "^0.1.2",
|
||||
"jest-styled-components": "^6.2.1",
|
||||
"jsencrypt": "^3.2.1",
|
||||
"leaflet": "^1.8.0",
|
||||
"lerc": "^3.0.0",
|
||||
"lerna": "^3.16.4",
|
||||
|
@ -154,9 +156,7 @@
|
|||
"webpack-merge": "^4.1.4",
|
||||
"wellknown": "^0.5.0",
|
||||
"worker-loader": "^2.0.0",
|
||||
"yorkie": "^2.0.0",
|
||||
"crypto-js": "^4.1.1",
|
||||
"jsencrypt": "^3.2.1"
|
||||
"yorkie": "^2.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "npm run worker && dumi dev",
|
||||
|
@ -199,6 +199,7 @@
|
|||
"worker": "cross-env BABEL_ENV=bundle NODE_ENV=production yarn rollup -c build/rollup.config.worker.js --environment BUILD:production",
|
||||
"worker:watch": "cross-env BABEL_ENV=bundle NODE_ENV=production yarn rollup -c build/rollup.config.worker.js --environment BUILD:development --watch",
|
||||
"clean": "lerna run clean --parallel",
|
||||
"clear-node-modules": "rimraf node_modules && lerna clean -y",
|
||||
"sync": "lerna run sync --parallel"
|
||||
},
|
||||
"workspaces": [
|
||||
|
|
|
@ -187,6 +187,24 @@ const zoomControl = new Zoom({
|
|||
scene.getControlByName('z1');
|
||||
```
|
||||
|
||||
## 气泡方法
|
||||
|
||||
### addPopup(popup: Popup): void 添加气泡
|
||||
|
||||
往场景中添加气泡对象,气泡用于展示用户自定义信息。
|
||||
|
||||
```javascript
|
||||
scene.addPopup(popup);
|
||||
```
|
||||
|
||||
### removePopup(popup: Popup): void 移除气泡
|
||||
|
||||
往场景中移除气泡对象
|
||||
|
||||
```javascript
|
||||
scene.removePopup(popup);
|
||||
```
|
||||
|
||||
## 标记方法
|
||||
|
||||
### addMarker(maker: IMarker): void 添加标记
|
||||
|
|
Loading…
Reference in New Issue