From 94356607ffe4d812cb75f3c3f9f3b854ae0756b7 Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期六, 15 十月 2022 13:15:04 +0800
Subject: [PATCH] 调整道路轨迹高度
---
widgetsTS/widget_summary/widget.js | 26 +++++++++++++++-----------
1 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/widgetsTS/widget_summary/widget.js b/widgetsTS/widget_summary/widget.js
index 0215d89..53ffcda 100644
--- a/widgetsTS/widget_summary/widget.js
+++ b/widgetsTS/widget_summary/widget.js
@@ -170,24 +170,28 @@
}
addPathToMap(layerid, qindex, positions, attr) {
- var road = new mars3d.graphic.WallPrimitive({
+ var road = new mars3d.graphic.CorridorPrimitive({
positions: positions,
style: {
- closure: true,
- diffHeight: qindex == "co" ? 10 * attr[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
- }),
+ width: 80,
+ opacity: 0.75,
+ //closure: true,
+ height: 0,
+ cornerType: Cesium.CornerType.MITERED,
+ diffHeight: qindex == "co" ? 1000 * attr[qindex] : attr[qindex] || attr[qindex] == "/" ? 3000 : 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
});
mars3d.global_variables.tmpHighlightGraphicLayer.addGraphic(road);
}
-
showDetailedWindow(params) {
if (mars3d.widget.isActivate("widgetsTS/widget_detail/widget.js")) {
var detailWiget = mars3d.widget.getClass("widgetsTS/widget_detail/widget.js");
--
Gitblit v1.9.1