vue-cli-plugin-cesium
vue-cli-plugin-cesium copied to clipboard
Cesium encapsulation based on Vue cli
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema. - options[0] has an unknown property 'to'. These properties are...
代码 var tileset = new Cesium.Cesium3DTileset({ url: "Tileset/tileset.json", }); tileset.readyPromise .then(function (tileset) { viewer.scene.primitives.add(tileset); viewer.zoomTo( tileset, new Cesium.HeadingPitchRange( 0.0, -0.5, tileset.boundingSphere.radius * 2.0 ) ); }) .otherwise(function (error) { console.log(error);...
没有代码提示怎么办啊
我在vue.config.js中的configureWebpack加入的DefinePlugin中的CESIUM_BASE_URL会被插件覆盖。  这里获取不到publicPath,我在vue.config.js中设置的publicPath是./ ,vue-cli会对./做处理 图里的opts.publicPath拿到的是空字符串。 CESIUM_BASE_URL为空字符串的时候会请求不到Cesium的资源。 我的服务器地址前面有路径,不是直接在域名后面。  像这样,Cesium就找不到依赖的文件
不能用啊
是因为cli版本太新了吗