zhaoxing
2022-10-15 94356607ffe4d812cb75f3c3f9f3b854ae0756b7
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");