maxiaoxiao 11 月之前
父节点
当前提交
bb33f0e8e2
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      src/views/modelStretch/index.vue

+ 5 - 3
src/views/modelStretch/index.vue

@@ -309,7 +309,8 @@ export default {
           }),
           }),
           attributes: {
           attributes: {
             color: Cesium.ColorGeometryInstanceAttribute.fromColor(
             color: Cesium.ColorGeometryInstanceAttribute.fromColor(
-              Cesium.Color.CHARTREUSE.withAlpha(0.1)
+              // Cesium.Color.CHARTREUSE.withAlpha(0.1)
+              new Cesium.Color(0.8, 0.8, 0.8, 1.0).withAlpha(1)
             ),
             ),
           },
           },
         });
         });
@@ -342,11 +343,12 @@ export default {
         var boundaryPolyline = new Cesium.GeometryInstance({
         var boundaryPolyline = new Cesium.GeometryInstance({
           geometry: new Cesium.PolylineGeometry({
           geometry: new Cesium.PolylineGeometry({
             positions: Cesium.Cartesian3.fromDegreesArrayHeights(pss), // 注意这里需要处理高度为0的情况,因为边界线通常在地表
             positions: Cesium.Cartesian3.fromDegreesArrayHeights(pss), // 注意这里需要处理高度为0的情况,因为边界线通常在地表
-            width: 1, // 边界线的宽度
+            width: 2, // 边界线的宽度
           }),
           }),
           attributes: {
           attributes: {
             color: Cesium.ColorGeometryInstanceAttribute.fromColor(
             color: Cesium.ColorGeometryInstanceAttribute.fromColor(
-              Cesium.Color.CHARTREUSE.withAlpha(0.8)
+              // Cesium.Color.CHARTREUSE.withAlpha(0.8)
+              new Cesium.Color(0.4, 0.4, 0.4, 1.0).withAlpha(1)
             ),
             ),
           },
           },
         });
         });