extending CZML

Hello Patrick/Mathew,

i am right now working on generating two references of color for the same entity for generation of highlighting on the geo features.

there are two ways to it as given below:

  1. when i am adding two materials in CZML , then the second material is overriding the first in czmlDataSource.entities.entities we can not see both the color objects.

“polygon”:{

“show”:true,

“material”:{

“solidColor”:{

“color”:{

“rgba”:[

0,255,0,153

]

}

}

},

“material”:{

“solidColor”:{

“color”:{

“rgba”:[

255,0,0,153

]

}

}

},

“positions”:{

“cartographicDegrees”:[

-119.2464530463181,36.60721504889783,0,-119.3648423793253,36.52771111695294,0,-119.3799249130993,36.4635145325916,0,-119.2126511121409,36.46209022727089,0,-119.1850839827052,36.55907300722166,0,-119.2464530463181,36.60721504889783,0

]

}

},

  1. we needed to append another object in the CZML other than what is existing in the entity as given below:

we are able to render the geo feature but unable to get that “style” object n czmlDataSource.entities.entities

{

“id”: “9bf3aef0-44a4-49ce-892d-0b937f7daa9322222222222222”,

“style”:“style”,

“polygon”: {

“material”: { “solidColor”: { “color”: { “rgba”: [ 255, 127, 127, 153 ] } } },

}

could you please let me know as to how to go about it.

thanks and regards,

chandrika

Hello ,

please let me know whether any of the above two ways is possible or not.

  1. also can we have references of two material objects to the same entity of CZML, it would be great if u could provide one sample CZML.

thanks and regards

chandrika

  1. What you have there is invalid JSON, if you are trying to create two polygons with two different colors, you need two different polygon objects.

  2. I just did a write up on this here: https://groups.google.com/d/msg/cesium-dev/v0I-P1sz7VM/NfVbqRD4lX0J

  3. I’m not sure what you mean.