e.polygon.stroke in kml style does not effect

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.


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);





Once you load the KML in CesiumJS, it creates entities, so you’ll need to look up the property names in the Entity API. In this case, they’re called outlineColor and outlineWidth:


Note that outlineWidth isn’t supported on all platforms, see the discussion here: https://groups.google.com/d/msg/cesium-dev/dlJgY7FaRPw/Xh0ix-peAQAJ