I tied this:
var polylines = scene.primitives.add(new Cesium.PolylineCollection());
var polyline2 = polylines.add({
positions : Cesium.PolylinePipeline.generateCartesianArc({
positions : Cesium.Cartesian3.fromDegreesArrayHeights([-75, 39, 250000,-125, 39, 0]),
}),
width : 2.0
});
But the height parameter does not work. Any solution except doing this by viewer.entities.add()?
Hi there,
Polylines do not use the height parameter.
Instead, the polyline positions are 3D points, so you can give your lines height by specifying a height for each point. See our polyline code example: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Polyline.html&label=Showcases
Hope thatt helps,
在 2017年7月5日星期三 UTC+8上午9:19:31,Rachel Hwang写道:
Hi there,
Polylines do not use the height parameter.
Instead, the polyline positions are 3D points, so you can give your lines height by specifying a height for each point. See our polyline code example: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Polyline.html&label=Showcases
Hope thatt helps,
- Rachel
Thanks for your advice. If I follow the example code, I have no idea how to pass a self-defined fabric to a entity's material? It seems only a few functions like PolylineOutlineMaterialProperty, PolylineArrowMaterialProperty, etc. work. But none of them support a self-defined fabric.