From 366af23329c26d69d1f644e6a32fcb02e87910e3 Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期五, 14 十月 2022 19:56:25 +0800
Subject: [PATCH] 搜索路段显示改为走廊显示
---
widgetsTS/widget_search/widget.js | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/widgetsTS/widget_search/widget.js b/widgetsTS/widget_search/widget.js
index b3bc433..8b59d4a 100644
--- a/widgetsTS/widget_search/widget.js
+++ b/widgetsTS/widget_search/widget.js
@@ -160,18 +160,23 @@
}
addPathToMap(layerid, qindex, positions, attr) {
- var road = new mars3d.graphic.WallPrimitive({
+ var road = new mars3d.graphic.CorridorPrimitive({
positions: positions,
style: {
- closure: true,
+ width: 80,
+ opacity: 0.75,
+ //closure: true,
+ height: 0,
+ cornerType: Cesium.CornerType.MITERED,
diffHeight: qindex == "co" ? 10 * attr[qindex] : attr[qindex] || attr[qindex] == "/" ? 500 : attr[qindex], //楂樺害
- 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
- }),
+ 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