Embedded GeoGebra: Segments do not render

Subasha Wickramarachchi shared this question 3 months ago
Answered

When a GeoGebra app is embedded following the instructions given in https://wiki.geogebra.org/e...,

line segments do not render (not visible). Vectors are visible.

When the same app is viewed directly via the browser (using the url http://www.geogebra.org/...), lines render fine.

What is the reason for this discrepancy?

Comments (6)

photo
1

I just found out that rendering is fine if I set "appName": "geometry" rather than "appName": "graphing". I'm not sure why this difference causes segments not to render.

photo
1

Segments aren't supported in Graphing as you've noticed

photo
1

Thanks Michael for the clarification and quick reply. Referring to my comment below, which I should have written as a reply to your answer rather than a separate comment, what is the correct material id? nmjqmvhd, which appears in the url https://www.geogebra.org/m/nmjqmvhd, or jfxck34u.

photo
photo
1

Thanks. The app loads and works fine. But when I checked the browser console, I observed the error message:

Failed to load resource: the server responded with a status of 403 () https://www.geogebra.org/re...

In the above url, "jfxck34u" is the id that appears if I were to embed the app using an iframe.

The id that I have used for embedding in the webpage is "nmjqmvhd", which I believe is the "material id", which appears in the url https://www.geogebra.org/m/nmjqmvhd.

What is the cause of the above error in the console?

photo
1

Adding some more information, I can see the same error in the browser console when I use the url https://www.geogebra.org/m/nmjqmvhd to view the app.

photo
1

It turns out that the missing material-jfxck34u.png is actually the thumbnail png image that is supposed to be auto-generated. It sometimes fails to auto-generate. By changing the Preview Image by going to Activity Setting appears to fix the problem. It appears to take a while for the changed Preview Image to take effect.

photo
© 2020 International GeoGebra Institute