-
-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(components): 🐛 the
vc-layer-imagery
component crashes in Cesium…
… `1.106.1`
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 { | ||
|