因为打算春招投下实习,所以把自己写的项目都优化下,重新写cesium的小demo因为版本不同了遇到了很多报错
Cesium导入图片失败 报错如下:
Failed to load resource: the server responded with a status of 404 (Not Found) :5173/assets/2.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found) :5173/assets/3.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
cesium在加载skyBox时出现错误,图片加载失败
方法:要把图片引入在赋给sources