Przeglądaj źródła

中图夜景代码更新

lkk 1 rok temu
rodzic
commit
cb5231b849

+ 20 - 5
src/components/Combinations/NightscapeAnalysis/index.js

@@ -263,13 +263,21 @@ const Nightscape = {
         var colorTable = new Cesium.ColorTable();
         if (that.tycindex == 0) {
           colorTable.insert(
-            65,
+            61,
+            new Cesium.Color(255 / 255, 255 / 255, 255 / 255)
+          );
+          colorTable.insert(
+            43,
             new Cesium.Color(255 / 255, 0 / 255, 234 / 255)
           );
           colorTable.insert(30, new Cesium.Color(13 / 255, 255 / 255, 0 / 255));
         } else if (that.tycindex == 1) {
           colorTable.insert(
-            65,
+            61,
+            new Cesium.Color(255 / 255, 255 / 255, 255 / 255)
+          );
+          colorTable.insert(
+            43,
             new Cesium.Color(255 / 255, 255 / 255, 0 / 255)
           );
           colorTable.insert(
@@ -277,15 +285,22 @@ const Nightscape = {
             new Cesium.Color(0 / 255, 232 / 255, 255 / 255)
           );
         } else {
-          colorTable.insert(65, new Cesium.Color(23 / 255, 0 / 255, 255 / 255));
+          colorTable.insert(
+            61,
+            new Cesium.Color(255 / 255, 255 / 255, 255 / 255)
+          );
+          colorTable.insert(
+            43,
+            new Cesium.Color(95 / 255, 234 / 255, 106 / 255)
+          );
           colorTable.insert(
             30,
-            new Cesium.Color(155 / 255, 0 / 255, 255 / 255)
+            new Cesium.Color(95 / 255, 234 / 255, 106 / 255)
           );
         }
         var layer = scene.layers.find("TYCB@BaoPo0621N");
         var hyp = new Cesium.HypsometricSetting();
-        hyp.MaxVisibleValue = 65;
+        hyp.MaxVisibleValue = 61;
         hyp.MinVisibleValue = 30;
         hyp.ColorTable = colorTable;
         hyp.DisplayMode = Cesium.HypsometricSettingEnum.DisplayMode.FACE;

+ 19 - 6
src/views/ConstructionApplication3D/NightscapeAnalysis/NightscapeAnalysis.vue

@@ -180,6 +180,7 @@ export default {
       entityPointLightPairs: new Map(), // Entity和点光源对象的键值对
       entitySpotLightPairs: new Map(), // Entity和聚光灯对象的键值对
       entityDirectionalLightPairs: new Map(), // Entity和平行光对象的键值对
+      tycindex: 0,
     };
   },
   props: {
@@ -481,7 +482,11 @@ export default {
           var colorTable = new Cesium.ColorTable();
           if (that.tycindex == 0) {
             colorTable.insert(
-              65,
+              61,
+              new Cesium.Color(255 / 255, 255 / 255, 255 / 255)
+            );
+            colorTable.insert(
+              43,
               new Cesium.Color(255 / 255, 0 / 255, 234 / 255)
             );
             colorTable.insert(
@@ -490,7 +495,11 @@ export default {
             );
           } else if (that.tycindex == 1) {
             colorTable.insert(
-              65,
+              61,
+              new Cesium.Color(255 / 255, 255 / 255, 255 / 255)
+            );
+            colorTable.insert(
+              43,
               new Cesium.Color(255 / 255, 255 / 255, 0 / 255)
             );
             colorTable.insert(
@@ -499,17 +508,21 @@ export default {
             );
           } else {
             colorTable.insert(
-              65,
-              new Cesium.Color(23 / 255, 0 / 255, 255 / 255)
+              61,
+              new Cesium.Color(255 / 255, 255 / 255, 255 / 255)
+            );
+            colorTable.insert(
+              43,
+              new Cesium.Color(95 / 255, 234 / 255, 106 / 255)
             );
             colorTable.insert(
               30,
-              new Cesium.Color(155 / 255, 0 / 255, 255 / 255)
+              new Cesium.Color(95 / 255, 234 / 255, 106 / 255)
             );
           }
           var layer = scene.layers.find("TYCB@BaoPo0621N");
           var hyp = new Cesium.HypsometricSetting();
-          hyp.MaxVisibleValue = 65;
+          hyp.MaxVisibleValue = 61;
           hyp.MinVisibleValue = 30;
           hyp.ColorTable = colorTable;
           hyp.DisplayMode = Cesium.HypsometricSettingEnum.DisplayMode.FACE;