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:
- 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
]
}
},
- 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