From 96f74db5cc10ad3ac86685a1659c7291e3545115 Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期六, 22 十月 2022 14:06:56 +0800
Subject: [PATCH] topN路段显示更改为线显示
---
widgetsTS/widget_search/widget.js | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/widgetsTS/widget_search/widget.js b/widgetsTS/widget_search/widget.js
index 4ba470c..2372202 100644
--- a/widgetsTS/widget_search/widget.js
+++ b/widgetsTS/widget_search/widget.js
@@ -160,23 +160,16 @@
}
addPathToMap(layerid, qindex, positions, attr) {
- var road = new mars3d.graphic.CorridorPrimitive({
+ var road = new mars3d.graphic.PolylineEntity({
positions: positions,
style: {
- width: 150,
+ width: 8,
opacity: 1,
//closure: true,
height: 0,
cornerType: Cesium.CornerType.MITERED,
diffHeight: qindex == "co" ? 500 * attr[qindex] : 20*attr[qindex], //楂樺害
color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex] || "#C0C0C0"),
- // material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
- // //鍔ㄧ敾绾挎潗璐�
- // image: "img/textures/fence.png",
- // axisY: true,
- // color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex] || "#C0C0C0"),
- // speed: 10, //閫熷害锛屽缓璁彇鍊艰寖鍥�1-100
- // }),
},
attr: attr
});
--
Gitblit v1.9.1