const viewer = new Cesium.Viewer()const imageryLayers = viewer.imageryLayers;const provider = new Cesium.SuperMapImageryProvider({ url: '',})Cesium.when(provider.readyPromise,(res) => { console.log('provider.readyPromise success', res) this.$emit('mapServerConnect', true)}, (err) => { console.error('provider.readyPromise error', err) this.$emit('mapServerConnect', false)})
This article is transferred from https://www.wujingquan.com/posts/6012cd61.html
This site is only for collection, and the copyright belongs to the original author.