使用
vue-cesium-supermap时引入三维时报错
cesiumWorkerBootstrapper.js:29 Uncaught Error: importScripts failed for Workers/S3MTilesParser at https://lauxb.github.io/vue-cesium-supermap/Cesium/Workers/S3MTilesParser.js
http://requirejs.org/docs/errors.html#importscripts
at makeError (cesiumWorkerBootstrapper.js:29)
at Function.req.load (cesiumWorkerBootstrapper.js:29)
at Object.load (cesiumWorkerBootstrapper.js:29)
at b.load (cesiumWorkerBootstrapper.js:29)
at b.fetch (cesiumWorkerBootstrapper.js:29)
at b.check (cesiumWorkerBootstrapper.js:29)
at b.enable (cesiumWorkerBootstrapper.js:29)
at Object.enable (cesiumWorkerBootstrapper.js:29)
at b.<anonymous> (cesiumWorkerBootstrapper.js:29)
at cesiumWorkerBootstrapper.js:29
makeError @ cesiumWorkerBootstrapper.js:29
req.load @ cesiumWorkerBootstrapper.js:29
load @ cesiumWorkerBootstrapper.js:29
load @ cesiumWorkerBootstrapper.js:29
fetch @ cesiumWorkerBootstrapper.js:29
check @ cesiumWorkerBootstrapper.js:29
enable @ cesiumWorkerBootstrapper.js:29
enable @ cesiumWorkerBootstrapper.js:29
(anonymous) @ cesiumWorkerBootstrapper.js:29
(anonymous) @ cesiumWorkerBootstrapper.js:29
each @ cesiumWorkerBootstrapper.js:29
enable @ cesiumWorkerBootstrapper.js:29
init @ cesiumWorkerBootstrapper.js:29
(anonymous) @ cesiumWorkerBootstrapper.js:29
setTimeout @ cesiumWorkerBootstrapper.js:29
req.nextTick @ cesiumWorkerBootstrapper.js:29
o @ cesiumWorkerBootstrapper.js:29
requirejs @ cesiumWorkerBootstrapper.js:29
self.onmessage @ cesiumWorkerBootstrapper.js:29
源代码
ready (cesiumInstance) {
console.log(cesiumInstance)
// var Cesium = cesiumInstance.Cesium
var viewer = cesiumInstance.viewer
// var viewer = Cesium.Viewer('cesiumContainer')
this.cesiumInstance = cesiumInstance
// viewer = Cesium.Viewer('cesiumContainer')
var scene = viewer.scene
console.log(cesiumInstance)
// var WORD_BAIYUN = 'http://develop.roywise.cn:31080/iserver/services/3D-baiyun-can/rest/realspace'
scene.open('http://develop.roywise.cn:31080/iserver/services/3D-baiyun-can/rest/realspace')
},