Hi folks,
I’m writing my czml using the czml java library in a servlet. It’s working quite well, but I’d like to add different solid colors to different paths (similar to the satellite sandbox example)
I’ve got this:
PathCesiumWriter path = packet.openPathProperty();
path.writeShowProperty(true);
path.writeWidthProperty(3.0);
path.writeResolutionProperty(3600);
path.close();
giving me this:
“path”:{
“show”:true,
“width”:3,
“resolution”:3600
},
Can anyone tell me how to add material color to the path :
“path”:{
“show”:true,
“width”:3,
“resolution”:3600
You are looking for something like this I guess.
using (var path = package.OpenPathProperty())
{
path.WriteWidthProperty(5);
path.WriteShowProperty(true);
using (var matrial = path.OpenMaterialProperty())
{
using (var color = matrial.OpenSolidColorProperty())
{
color.WriteColorProperty(255, 255, 0, 255);
}
}
}
``
Awesome…
I learned two things there - your code was javascript… So I can do this in JS as well as Java, and I learned what to do to add stuff (I totally missed it in the intelli-code in eclipse, so my bad)…
Awesome - thanks a LOT.
Brian
My code was actually, c# from a .net commandline tool i did some time ago.