Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/zouyaoji/vue-cesium into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghuang-liu committed Dec 27, 2023
2 parents d12d7be + 2b751ba commit f375892
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 15 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
9 changes: 7 additions & 2 deletions packages/composables/use-drawing/use-drawing-fab.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-10-13 09:45:59
* @LastEditTime: 2023-03-13 17:52:59
* @LastEditTime: 2023-12-06 00:13:43
* @LastEditors: zouyaoji 370681295@qq.com
* @Description:
* @FilePath: \vue-cesium@next\packages\composables\use-drawing\use-drawing-fab.ts
* @FilePath: \vue-cesium\packages\composables\use-drawing\use-drawing-fab.ts
*/
import { VcCollectionPrimitive } from '@vue-cesium/components/primitive-collections'
import type { VcFabProps, VcFabRef } from '@vue-cesium/components/ui'
Expand Down Expand Up @@ -169,6 +169,11 @@ export default function (
return Cartesian3.clone(position, result)
}
}
} else {
position = scene.pickPosition(windowPosition, cartesianScratch)
if (defined(position)) {
return Cartesian3.clone(position, result)
}
}
}
if (defined(scene.globe)) {
Expand Down
3 changes: 1 addition & 2 deletions packages/shared/extends/materials/MaterialExtend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Date: 2023-08-18 00:56:13
* @Description: Do not edit
* @LastEditors: zouyaoji 370681295@qq.com
* @LastEditTime: 2023-10-31 22:33:58
* @LastEditTime: 2023-12-06 15:54:24
* @FilePath: \vue-cesium\packages\shared\extends\materials\MaterialExtend.ts
*/

Expand All @@ -12,7 +12,6 @@ import { VcCircleWaveMaterial, VcLineFlowMaterial } from '@vue-cesium/shared/sha
let isExtended = false
export default class MaterialExtend {
static extend(viewer: Cesium.Viewer) {
console.log('asdf', viewer)
if (isExtended) {
return
}
Expand Down

0 comments on commit f375892

Please sign in to comment.