Skip to content

Commit f375892

Browse files
committed
Merge branch 'dev' of https://github.com/zouyaoji/vue-cesium into dev
2 parents d12d7be + 2b751ba commit f375892

File tree

5 files changed

+58
-15
lines changed

5 files changed

+58
-15
lines changed

CHANGELOG.en-US.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## Changelog
22

3+
### 3.2.5
4+
5+
_2023-12-23_
6+
7+
#### Bug fixes
8+
9+
- The browser crash issue occurs when using `ref` or `reactive` to wrap the `hierarchy` prop in the `vc-graphics-polygon` component.
10+
- In native Cesium, there is an error when loading SuperMap iServer map services using `vc-provider-imagery-supermap`.
11+
12+
### 3.2.4
13+
14+
_2023-10-23_
15+
16+
#### Bug fixes
17+
18+
- The npm release for version 3.2.3 has an error.
19+
320
### 3.2.3
421

522
_2023-10-23_

CHANGELOG.zh-CN.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
## 更新日志
22

3+
### 3.2.5
4+
5+
_2023-12-23_
6+
7+
#### Bug 修复
8+
9+
- `vc-graphics-polygon` 组件使用 ref、reactive 包裹 hierarchy 参数后浏览器崩溃问题。
10+
- 原生 Cesium 下 `vc-provider-imagery-supermap`加载超图 iserver 的地图服务报错问题。
11+
12+
### 3.2.4
13+
14+
_2023-10-23_
15+
16+
#### Bug 修复
17+
18+
- 3.2.3 npm 发布错误,用3.2.4代替。
19+
20+
### 3.2.3
21+
22+
_2023-10-23_
23+
24+
#### Bug 修复
25+
26+
- `vc-imagery-provider-supermap` 组件在引入超图平台报错的问题。
27+
- `vc-primitive-tileset` 组件传参与官方文档不一致的问题。
28+
- `vc-collection-primitive` 组件未转发官方新增事件的问题。
29+
330
### 3.2.3
431

532
_2023-10-23_

packages/components/providers/supermap/SuperMapImageryProvider.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -277,20 +277,16 @@ function buildImageResource(this, x, y, level) {
277277
}
278278

279279
async function init(this) {
280-
console.log('ada')
281280
const { Resource } = Cesium
282281
if (this.isTileMap) {
283-
const promise = Resource.fetchJsonp({
284-
url: this._options.url + '.jsonp',
285-
queryParameters: {
286-
f: 'json'
287-
}
288-
})
289-
290282
try {
291-
promise.then(e => {
292-
onFulfilledTileMap.call(this, e)
283+
const res = await Resource.fetchJsonp({
284+
url: this._options.url + '.jsonp',
285+
queryParameters: {
286+
f: 'json'
287+
}
293288
})
289+
onFulfilledTileMap.call(this, res)
294290
} catch (e) {
295291
onRejected.call(this)
296292
}
@@ -300,7 +296,6 @@ async function init(this) {
300296
const e = await Resource.fetchText({
301297
url: this.url + 'config'
302298
})
303-
console.log('ada')
304299
onFulfilledRest3D.call(this, e)
305300
} catch (e) {
306301
onRejected.call(this)

packages/composables/use-drawing/use-drawing-fab.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* @Author: zouyaoji@https://github.com/zouyaoji
33
* @Date: 2021-10-13 09:45:59
4-
* @LastEditTime: 2023-03-13 17:52:59
4+
* @LastEditTime: 2023-12-06 00:13:43
55
* @LastEditors: zouyaoji 370681295@qq.com
66
* @Description:
7-
* @FilePath: \vue-cesium@next\packages\composables\use-drawing\use-drawing-fab.ts
7+
* @FilePath: \vue-cesium\packages\composables\use-drawing\use-drawing-fab.ts
88
*/
99
import { VcCollectionPrimitive } from '@vue-cesium/components/primitive-collections'
1010
import type { VcFabProps, VcFabRef } from '@vue-cesium/components/ui'
@@ -169,6 +169,11 @@ export default function (
169169
return Cartesian3.clone(position, result)
170170
}
171171
}
172+
} else {
173+
position = scene.pickPosition(windowPosition, cartesianScratch)
174+
if (defined(position)) {
175+
return Cartesian3.clone(position, result)
176+
}
172177
}
173178
}
174179
if (defined(scene.globe)) {

packages/shared/extends/materials/MaterialExtend.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Date: 2023-08-18 00:56:13
44
* @Description: Do not edit
55
* @LastEditors: zouyaoji 370681295@qq.com
6-
* @LastEditTime: 2023-10-31 22:33:58
6+
* @LastEditTime: 2023-12-06 15:54:24
77
* @FilePath: \vue-cesium\packages\shared\extends\materials\MaterialExtend.ts
88
*/
99

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

0 commit comments

Comments
 (0)