|
@@ -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;
|