openlayers绘制的面:
cesium绘制的面:
颜色变成一样了,但是面区域还是不对
this.areaPolygon = this.view.entities.add({
id: data.id,
name: '网格力量',
viewFrom: data,
polygon: {
hierarchy: new Cesium.Cartesian3.fromDegreesArray(jsonxx),
material: Cesium.Color.fromCssColorString(data.color).withAlpha(0.5),
heightReference: Cesium.HeightReference.RELATIVE_TO_GROUND,
extrudedHeight: 20,
outlineColor:Cesium.Color.fromCssColorString(data.color),
outlineWidth: 1,
outline: true,
},
zIndex: 7,
});