如图
加载代码如下:
window.viewer.scene.primitives.add(new Cesium.GroundPrimitive({
geometryInstances: new Cesium.GeometryInstance({
geometry: new Cesium.PolygonGeometry({
polygonHierarchy: new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(areaPointArr)),
}),
}),
appearance: new Cesium.MaterialAppearance({
material: Cesium.Material.fromType('Color', {
color: Cesium.Color.fromBytes(style[k].red, style[k].green, style[k].blue, 255)
}),
}),
// classificationType: Cesium.ClassificationType.S3M_TILE,
allowPicking: false,
}));
已关闭深度检测(viewer.scene.globe.depthTestAgainstTerrain = false)