1. A concise explanation of the problem you’re experiencing.
Hi, I am trying to change style of kml entities but it does not work.
I want to change Stroke color and width. My data are polygons and e.polygon returns undifined.
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
source.load(‘kml2.kml’).then(function(){
var entities = source.entities.values;
for(var i =0; i < entities.length; i++) {
var e = entities[i];
// e.wall.outlineColor = Cesium.Color.GREEN.withAlpha(0.5);
e.polygon.strokeWidth = 3;
e.polygon.stroke = Cesium.Color.GREEN.withAlpha(0.5);
}
});
viewer.dataSources.add(source);
``