Hi All,
I'm working on adding czml output support for MapGuide (an open source web mapping server).
For some reason, the attached czml (that is produced by a MapGuide extension I'm working on) will not load in Cesium. When I try to load this czml from the Sandcastle, it will fail with the following error:
An error occurred while rendering. Rendering has stopped.
This may indicate an incompatibility with your hardware or web browser, or it may indicate a bug in the application. Visit http://get.webgl.org to verify that your web browser and hardware support WebGL. Consider trying a different web browser or updating your video drivers. Detailed error information is below:
DeveloperError: right is required
Error
at new DeveloperError (http://localhost/mapguide/cesium/Source/Core/DeveloperError.js:43:19)
at Function.Cartesian3.subtract (http://localhost/mapguide/cesium/Source/Core/Cartesian3.js:458:19)
at Function.PolylineGeometry.createGeometry (http://localhost/mapguide/cesium/Source/Core/PolylineGeometry.js:233:28)
at createPolylineGeometry (http://localhost/mapguide/cesium/Source/Workers/createPolylineGeometry.js:12:33)
at createGeometry (http://localhost/mapguide/cesium/Source/Workers/createGeometry.js:39:30)
at DedicatedWorkerGlobalScope.<anonymous> (http://localhost/mapguide/cesium/Source/Workers/createTaskProcessorWorker.js:55:42)
The JS code I used for the sandcastle is simply:
var viewer = new Cesium.Viewer('cesiumContainer');
var roadsSource = new Cesium.CzmlDataSource();
roadsSource.loadUrl("path/to/features.czml").then(function() {
viewer.dataSources.add(roadsSource);
});
The CZML is just raw polyline packets with a line color defined for each packet. All cartographicDegrees arrays are in multiples of 3. Nothing seems to be un-toward.
I tried to debug the problem by sticking some breakpoints at Cartesian3.js:458 to try and at least identify the offending polyline that's throwing the DeveloperError, but Chrome DevTools refuses to break at the point the DeveloperErrors are thrown, yet continues to throw the error anyway (???)
Any ideas?
- Jackie