After upgrading from B15 to B16, an exception is thrown in my app when moving to 2D if there are polylines in the scene. Here is the stack trace:
Uncaught DeveloperError: sphere is required
Error
at new DeveloperError (http://localhost/MyApp/Cesium/Core/DeveloperError.js:44:22)
at Function.BoundingSphere.clone (http://localhost/MyApp/Cesium/Core/BoundingSphere.js:538:19)
at PolylineCollection.update (http://localhost/MyApp/Cesium/Scene/PolylineCollection.js:456:45)
at CompositePrimitive.update (http://localhost/MyApp/Cesium/Scene/CompositePrimitive.js:404:23)
at Scene.render (http://localhost/Proton/Cesium/Scene/Scene.js:497:26)
at declare.render (http://localhost/MyApp/Cesium/Widgets/Dojo/CesiumViewerWidget.js:1042:24)
at declare.updateAndRender (http://localhost/MyApp/Cesium/Widgets/Dojo/CesiumViewerWidget.js:1067:18)
at updateAndRender (http://localhost/MyApp/Cesium/Widgets/Dojo/CesiumViewerWidget.js:1091:24) BoundingSphere.js:538
BoundingSphere.clone BoundingSphere.js:538
PolylineCollection.update PolylineCollection.js:456
CompositePrimitive.update CompositePrimitive.js:404
Scene.render Scene.js:497
declare.render CesiumViewerWidget.js:1042
declare.updateAndRender CesiumViewerWidget.js:1067
updateAndRender CesiumViewerWidget.js:1091
It appears that a similar issue is present on the Apps deployed on this site, except that no exception is thrown, the polylines just disappear in 2D. For example, switch to 2D here:
http://cesium.agi.com/Cesium/Build/Apps/CesiumViewer/?source=Gallery/simple.czml
I noticed there was some discussion a few days ago about 2D polylines when displaying a GEO orbit track, but I looked at the commits associated with that and I think they are already in B16, and may be associated with the problem.
Thanks,
Jon