wangrong
2022-10-24 ab663303cf980d26b436bd16ce379c0ce0ad9d4d
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: 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] || "#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
            });