I made this question in another post but I think it merits it’s own:
I’m having trouble with the PolylineCollection/Polyline examples. With this code I can add the Polyline to the collection:
var polylines = new Cesium.PolylineCollection();
polylines.add({
positions : Cesium.Shapes.computeCircleBoundary(
ellipsoid, ellipsoid.cartographicToCartesian(
new Cesium.Cartographic.fromDegrees(-82.0, 37.0)), 300000.0)
});
primitives.add(polylines);
``
…but:
- lines do not “bend” with the shape of the earth
- the material in the examples is not working
I am using the above code and testing with the lines in the sandbox: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Polyline.html&label=Geometries
So I’m in a situation where I can either add the bendable line (per the sandbox) or have an updateable collection with no bendable and material lines (per the above code).
Below is a screen capture of the PolylineCollection output. Notice it is not following the surface.
The docs also don’t give good examples on either.
Any help will be appreciated.