Hello,
I'm currently using Cesium to visualize some paths given some corresponding latitude/longitude/altitude points. I am using polylineVolumes ( primitive: polylineVolumeGraphics http://cesiumjs.org/Cesium/Build/Documentation/PolylineVolumeGraphics.html ) to show the inaccuracy of the lat/long/alt points (e.g., 5-meter error).
Everything is going great so far. However, I've been trying to add some on-screen buttons to control the polylineVolumes' visibility, color, fill, etc. I managed to control their visibility via:
toggleVisibility : function( bool ) {
...
this.tubes[i].show = bool;
...
}
However, I can't seem to be able to change the polylineVolumes' colors (material or outlineColor) doing the same thing:
...
this.tubes[i].material = Cesium.Color.RED;
// or
this.tubes[i].outlineColor = Cesium.Color.RED;
...
I've been going through Cesium.js and trying to understand how properties are being set and updated on entities, but I've been having a hard time grasping everything.
My question is: Is it possible to change the polylineVolumes' colors (material and outlineColor) after they have been created, and if so, what is the recommended way?
A more generalized question would be: What is the intended way to modify entities' properties after they have been created?
I tried searching for these questions before posting, but what I found either didn't help or wasn't asked already. Sorry if I missed something.
Thanks!