zhaoxing
2022-10-14 366af23329c26d69d1f644e6a32fcb02e87910e3
搜索路段显示改为走廊显示
1个文件已修改
23 ■■■■■ 已修改文件
widgetsTS/widget_search/widget.js 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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
            });