Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zouyaoji committed Dec 14, 2023
2 parents eb8be4c + ab13e6d commit 7beb69d
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.en-US.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
## Changelog

### 3.2.5

_2023-12-23_

#### Bug fixes

- The browser crash issue occurs when using `ref` or `reactive` to wrap the `hierarchy` prop in the `vc-graphics-polygon` component.
- In native Cesium, there is an error when loading SuperMap iServer map services using `vc-provider-imagery-supermap`.

### 3.2.4

_2023-10-23_

#### Bug fixes

- The npm release for version 3.2.3 has an error.

### 3.2.3

_2023-10-23_
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
## 更新日志

### 3.2.5

_2023-12-23_

#### Bug 修复

- `vc-graphics-polygon` 组件使用 ref、reactive 包裹 hierarchy 参数后浏览器崩溃问题。
- 原生 Cesium 下 `vc-provider-imagery-supermap`加载超图 iserver 的地图服务报错问题。

### 3.2.4

_2023-10-23_

#### Bug 修复

- 3.2.3 npm 发布错误,用3.2.4代替。

### 3.2.3

_2023-10-23_

#### Bug 修复

- `vc-imagery-provider-supermap` 组件在引入超图平台报错的问题。
- `vc-primitive-tileset` 组件传参与官方文档不一致的问题。
- `vc-collection-primitive` 组件未转发官方新增事件的问题。

### 3.2.3

_2023-10-23_
Expand Down
17 changes: 6 additions & 11 deletions packages/components/providers/supermap/SuperMapImageryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,20 +277,16 @@ function buildImageResource(this, x, y, level) {
}

async function init(this) {
console.log('ada')
const { Resource } = Cesium
if (this.isTileMap) {
const promise = Resource.fetchJsonp({
url: this._options.url + '.jsonp',
queryParameters: {
f: 'json'
}
})

try {
promise.then(e => {
onFulfilledTileMap.call(this, e)
const res = await Resource.fetchJsonp({
url: this._options.url + '.jsonp',
queryParameters: {
f: 'json'
}
})
onFulfilledTileMap.call(this, res)
} catch (e) {
onRejected.call(this)
}
Expand All @@ -300,7 +296,6 @@ async function init(this) {
const e = await Resource.fetchText({
url: this.url + 'config'
})
console.log('ada')
onFulfilledRest3D.call(this, e)
} catch (e) {
onRejected.call(this)
Expand Down

0 comments on commit 7beb69d

Please sign in to comment.