Вы можете использовать PolylineCollection в качестве отдельного примитива для структуры.
Я создал демонстрацию в Sandcastle , показывающую этот вариант использования:
var viewer = new Cesium.Viewer('cesiumContainer');
var coords = [
-72.0, 40.0,
-70.0, 35.0,
-75.0, 30.0,
-70.0, 30.0,
-68.0, 40.0
];
var cartesian = Cesium.Cartesian3.fromDegreesArray(coords);
var color = Cesium.Color.DARKRED;
var outlineColor = Cesium.Color.GOLD;
var polygonPrimitive = new Cesium.Primitive({
geometryInstances: new Cesium.GeometryInstance({
id: 'polygon',
geometry: Cesium.PolygonGeometry.createGeometry(
new Cesium.PolygonGeometry({
polygonHierarchy: new Cesium.PolygonHierarchy(cartesian)
})
)
}),
appearance: new Cesium.MaterialAppearance({
material: new Cesium.Material.fromType('Color', {
color: color
})
}),
asynchronous: false
});
var polylinePrimitive = new Cesium.PolylineCollection();
polylinePrimitive.add({
positions: cartesian,
width: 3.0,
loop: true,
material: new Cesium.Material.fromType('Color', {
color: outlineColor
})
});
var primitives = viewer.scene.primitives;
primitives.add(polygonPrimitive);
primitives.add(polylinePrimitive);