zhaoxing
2022-10-15 94356607ffe4d812cb75f3c3f9f3b854ae0756b7
调整道路轨迹高度
2个文件已修改
26 ■■■■■ 已修改文件
widgetsTS/widget_search/widget.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/widget.js 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_search/widget.js
@@ -168,7 +168,7 @@
                    //closure: true,
                    height: 0,
                    cornerType: Cesium.CornerType.MITERED,
                    diffHeight: qindex == "co" ? 10 * attr[qindex] :  attr[qindex] || attr[qindex] == "/" ? 500 : attr[qindex], //高度
                    diffHeight: qindex == "co" ? 1000 * attr[qindex] :  attr[qindex] || attr[qindex] == "/" ? 3000 : attr[qindex], //高度
                    color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex] || "#C0C0C0"),
                    // material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
                    //     //动画线材质
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,
                    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]),
                        speed: 10, //速度,建议取值范围1-100
                    }),
                    // 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");