I have a project that I’ve converted from Google Earth to Cesium. I have the following problem and can’t seem to find an answer.
This project loads a dynamically generated KML file so I don’t have control over the colors.
I can get to the following polygon and I have a function to show or hide the polygon but I can not change it’s color.
Works:
outagesLayer.entities.getById(‘GPSJammingInterferenceId’).show = false/true; //depending on check box in the html.
Does not work:
outagesLayer.entities.getById(‘GPSJammingInterferenceId’).polygon.material = Cesium.Color.RED.withAlpha(0.5);
I’ve tried creating a material and then setting the material of this object but it doesn’t change. Is this possible?