Skip to content

Commit

Permalink
docs: updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Jun 8, 2022
1 parent 2dd7840 commit 973f090
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
## Changelog

### 3.0.14

_2022-06-08_

#### New feature

- The `vc-viewer` component adds the `viewerCreator` property, and passes in a method for the initialization method of the viewer when loading a non-standard third-party Cesium library.

#### Bug fixes

- `vd-drawings` cannot obtain latitude and longitude when drawing points on the mobile terminal.
- The `vc-overlay-html` component's show attribute does not respond in time.

### 3.0.13

_2022-05-19_
Expand Down
13 changes: 13 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
## 更新日志

### 3.0.14

_2022-06-08_

#### 新特性

- `vc-viewer` 组件增加 `viewerCreator` 属性,传入一个方法,用于加载非标准的第三方 Cesium 库时 viewer 的初始化方法。

#### Bug 修复

- `vd-drawings` 在移动端进行点标绘时,无法获取经纬度。#211
- `vc-overlay-html` 组件 show 属性响应不及时问题。

### 3.0.13

_2022-05-19_
Expand Down
13 changes: 11 additions & 2 deletions website/docs/zh-CN/overlays/vc-overlay-html.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2022-02-19 00:16:21
* @LastEditTime: 2022-03-09 21:20:54
* @LastEditTime: 2022-06-08 09:13:31
* @LastEditors: zouyaoji
* @Description:
* @FilePath: \vue-cesium@next\website\docs\zh-CN\overlays\vc-overlay-html.md
Expand All @@ -22,7 +22,7 @@ HTML 覆盖物组件的基础用法。
```html
<el-row ref="viewerContainer" class="demo-viewer">
<vc-viewer>
<vc-overlay-html ref="html" :position="[117.186419, 45.66446, 20]">
<vc-overlay-html ref="html" :position="[117.186419, 45.66446, 20]" :show="show">
<div class="vc-box">aa</div>
</vc-overlay-html>
<vc-entity :position="[117.186419, 45.66446, 20]">
Expand All @@ -46,11 +46,17 @@ HTML 覆盖物组件的基础用法。
<el-button type="danger" round @click="unload">销毁</el-button>
<el-button type="danger" round @click="load">加载</el-button>
<el-button type="danger" round @click="reload">重载</el-button>
<el-button type="danger" round @click="toggle">显/隐</el-button>
</el-row>
</el-row>

<script>
export default {
data() {
return {
show: true
}
},
methods: {
unload() {
this.$refs.html.unload()
Expand All @@ -60,6 +66,9 @@ HTML 覆盖物组件的基础用法。
},
reload() {
this.$refs.html.reload()
},
toggle() {
this.show = !this.show
}
}
}
Expand Down

0 comments on commit 973f090

Please sign in to comment.