Comments (3)
I followed the trace of the javascript code in the browser and when it reaches the break point shown in the image, the error is launched. However, in the console I can see all the values of the variables that reach this function. Attached screenshot.
In this image I show when the error is captured with the information in the console.
scene._renderError.raiseEvent(scene, error);
displays the error in the console:
Cesium.js:237541 An error occurred while rendering. Rendering has stopped.
undefined
TypeError: window[functionName] is not a function
TypeError: window[functionName] is not a function
at selectedObjectCallback (Shader.js:36548:22)
at MagoManager.selectedObjectNotice (Shader.js:13472:4)
at MagoManager.startRender (Shader.js:7356:11)
at MagoManager.start (Shader.js:5768:8)
at executeCommands (http://localhost:8080/src/engine/cesium/Cesium.js:226607:35)
at executeCommandsInViewport (http://localhost:8080/src/engine/cesium/Cesium.js:226966:9)
at updateAndExecuteCommands (http://localhost:8080/src/engine/cesium/Cesium.js:226814:13)
at render (http://localhost:8080/src/engine/cesium/Cesium.js:227350:9)
at tryAndCatchError (http://localhost:8080/src/engine/cesium/Cesium.js:227368:13)
at Scene.render (http://localhost:8080/src/engine/cesium/Cesium.js:227409:13)
Thanks
from mago3djs.
I used Google Translator.
Callbacks are available in mago3D.
Define the function name to be called with callback in the policy-cesium.json file.
You can create a function in an html file.
See the example below.
The callback name and function name in the json file must be the same.
---- mago3djs source ----
policy-cesium.json
..... skip ......
"geo_callback_enable": "true",
"geo_callback_apiresult": "showApiResult",
"geo_callback_dataInfo": "showDataInfo",
"geo_callback_selectedobject": "showSelectedObject",
"geo_callback_moveddata": "showMovedData",
"geo_callback_insertissue": "showInsertIssueLayer",
"geo_callback_clickposition": "showClickPosition",
showApiResult: result of api call
showDataInfo: data information display
.... skip .....
showClickPosition: Display click information
cesium.html
2101 line
function showClickPosition(position) {
.... skip ....
}
http://www.mago3d.com/homepage/demo.do
If you test the page by placing a breakpoint in Chrome Debugger mode
You can check.
github has data upload restriction, so test data can not be uploaded.
from mago3djs.
Hello, thank you very much for your reply, it has been very helpful. Problem solved.
Greetings
from mago3djs.
Related Issues (20)
- λ‘κ³
- An in-range update of eslint-plugin-react is breaking the build π¨ HOT 2
- TypeError: Cannot read property 'setBoxSize' of undefined HOT 9
- Can't Render IFC files HOT 5
- μ¬μ© κ°λ₯ν API λ²μμ 3D λ λλ§ μ§μ λ²μ λ¬Έμ HOT 7
- about camera HOT 18
- μ¬μ§ λμ€νλ μ΄μ λν μ§λ¬Έ HOT 3
- εε¦θ
- about Cesium.Viewer HOT 2
- cannot display converted data HOT 2
- Linux κΈ°λ°μ μ F4DConverter λ§ν¬κ° mago3D νλ‘μ νΈμ μ°κ²°λμ΄μΌ νμ§ μμκΉμ? HOT 1
- F4DConverter μ€ν μ€λ₯ HOT 1
- How do I change the model size? HOT 2
- About the current camera perspective? HOT 2
- TypeError: Cannot read property 'texId' of undefined
- a problem with the "Rendering has stopped" in the issue registration HOT 1
- Test run HOT 17
- error when source code build using gulp
- how to get all object id from 3D model?
- How do I use digital twins in mago3d? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mago3djs.