From 1a2c1d005bf7de2528f73638fb24d31da812aad5 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Tue, 22 Jun 2021 17:40:13 +0800
Subject: [PATCH] 增加模型
---
widgets/slope/Widget.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/widgets/slope/Widget.js b/widgets/slope/Widget.js
index a5f81a5..90c394f 100644
--- a/widgets/slope/Widget.js
+++ b/widgets/slope/Widget.js
@@ -41,15 +41,18 @@
// roll: 6.2831853016686185
// }
// });
+ viewer.imageryLayers.addImageryProvider(new Cesium.SuperMapImageryProvider({
+ url: 'http://www.supermapol.com/realspace/services/3D-ZF_normal/rest/realspace/datas/image'
+ }));
var slope = new Cesium.SlopeSetting();
slope.DisplayMode = Cesium.SlopeSettingEnum.DisplayMode.FACE_AND_ARROW;
slope.MaxVisibleValue = document.getElementById("widemax").value;
slope.MinVisibleValue = document.getElementById("widemin").value;
var colorTable = new Cesium.ColorTable();
- colorTable.insert(80, new Cesium.Color(255 / 255, 0 / 255, 0 / 255));
- colorTable.insert(50, new Cesium.Color(221 / 255, 224 / 255, 7 / 255));
- colorTable.insert(30, new Cesium.Color(20 / 255, 187 / 255, 18 / 255));
- colorTable.insert(20, new Cesium.Color(0, 161 / 255, 1));
+ colorTable.insert(8000, new Cesium.Color(255 / 255, 0 / 255, 0 / 255));
+ colorTable.insert(5000, new Cesium.Color(221 / 255, 224 / 255, 7 / 255));
+ colorTable.insert(3000, new Cesium.Color(20 / 255, 187 / 255, 18 / 255));
+ colorTable.insert(2000, new Cesium.Color(0, 161 / 255, 1));
colorTable.insert(0, new Cesium.Color(9 / 255, 9 / 255, 255 / 255));
var wide;
wide = Cesium.HypsometricSettingEnum.AnalysisRegionMode.ARM_REGION;
--
Gitblit v1.9.3