Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTFLoader 示例引入initCesium报错 #21

Open
gisfinder opened this issue Jul 9, 2021 · 0 comments
Open

TTFLoader 示例引入initCesium报错 #21

gisfinder opened this issue Jul 9, 2021 · 0 comments

Comments

@gisfinder
Copy link

尝试TTFLoader的例子,这个示例中引用了initCesium.js。initCesium代码里有一部分好像是固定路径,所以就会报错。
错误信息如下:
n error occurred while rendering. Rendering has stopped.
undefined
TypeError: Cannot assign to read only property 'red' of object '[object Object]'
TypeError: Cannot assign to read only property 'red' of object '[object Object]'
at Function.Color.clone (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:416833)
at o.updateSunLight (http://127.0.0.1:5502/ThirdParty/Cesium/initCesium.js:4:11247)
at o.update (http://127.0.0.1:5502/ThirdParty/Cesium/initCesium.js:4:14683)
at PrimitiveCollection.update (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:2049855)
at updateAndRenderPrimitives (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3032387)
at executeCommandsInViewport (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3030969)
at Scene.updateAndExecuteCommands (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3027985)
at render (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3040440)
at tryAndCatchError (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3040677)
at Scene.render (http://127.0.0.1:5502/ThirdParty/Cesium/Cesium.js:1:3042540)
CesiumWidget.showErrorPanel @ Cesium.js:1
VM6:1 Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.
e @ VM6:1
tdtVec.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
tdtImg.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)

DevTools failed to load source map: Could not load content for http://127.0.0.1:5502/ThirdParty/Cesium/initCesium.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant