From ab663303cf980d26b436bd16ce379c0ce0ad9d4d Mon Sep 17 00:00:00 2001
From: wangrong <wangrong@shsening.com>
Date: 星期一, 24 十月 2022 01:06:26 +0800
Subject: [PATCH] 添加权限

---
 widgetsTS/widget_summary/widget.js |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/widgetsTS/widget_summary/widget.js b/widgetsTS/widget_summary/widget.js
index 53ffcda..9a3d98e 100644
--- a/widgetsTS/widget_summary/widget.js
+++ b/widgetsTS/widget_summary/widget.js
@@ -170,23 +170,16 @@
         }
 
         addPathToMap(layerid, qindex, positions, attr) {
-            var road = new mars3d.graphic.CorridorPrimitive({
+            var road = new mars3d.graphic.PolylineEntity({
                 positions: positions,
                 style: {
-                    width: 80,
-                    opacity: 0.75,
+                    width: 8,
+                    opacity: 1,
                     //closure: true,
                     height: 0,
                     cornerType: Cesium.CornerType.MITERED,
-                    diffHeight: qindex == "co" ? 1000 * attr[qindex] :  attr[qindex] || attr[qindex] == "/" ? 3000 : attr[qindex],//楂樺害
+                    diffHeight: qindex == "co" ? 500 * attr[qindex] :  20 * attr[qindex],//楂樺害
                     color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex]),
-                    // material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
-                    //     //鍔ㄧ敾绾挎潗璐�
-                    //     image: "img/textures/fence.png",
-                    //     axisY: true,
-                    //     color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex]),
-                    //     speed: 10, //閫熷害锛屽缓璁彇鍊艰寖鍥�1-100
-                    // }),
                 },
                 attr: attr
             });

--
Gitblit v1.9.1