Skip to content

Commit

Permalink
fix(components): 🐛 the vc-layer-imagery component crashes in Cesium…
Browse files Browse the repository at this point in the history
… `1.106.1`
  • Loading branch information
zouyaoji committed Jun 6, 2023
1 parent 4e3740f commit b912a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/imagery-layer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author: zouyaoji@https://github.com/zouyaoji
* @Date: 2021-09-16 09:28:13
* @LastEditTime: 2023-04-07 02:17:24
* @LastEditTime: 2023-06-07 01:36:16
* @LastEditors: zouyaoji [email protected]
* @Description:
* @FilePath: \vue-cesium\packages\components\imagery-layer\src\index.ts
Expand Down Expand Up @@ -47,7 +47,7 @@ export default defineComponent({
// methods
instance.createCesiumObject = async () => {
const options = commonState.transformProps(props)
const imageryProvider = (props.imageryProvider || {}) as Cesium.ImageryProvider
const imageryProvider = (props.imageryProvider || new Cesium.ArcGisMapServerImageryProvider()) as Cesium.ImageryProvider
if (compareCesiumVersion(Cesium.VERSION, '1.104')) {
return Cesium.ImageryLayer.fromProviderAsync(imageryProvider as any, options as any)
} else {
Expand Down

0 comments on commit b912a24

Please sign in to comment.