zhaoxing
2022-10-22 96f74db5cc10ad3ac86685a1659c7291e3545115
topN路段显示更改为线显示
2个文件已修改
22 ■■■■■ 已修改文件
widgetsTS/widget_search/widget.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/widget.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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: 150,
                    width: 8,
                    opacity: 1,
                    //closure: true,
                    height: 0,
                    cornerType: Cesium.CornerType.MITERED,
                    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
            });
widgetsTS/widget_summary/widget.js
@@ -170,23 +170,16 @@
        }
        addPathToMap(layerid, qindex, positions, attr) {
            var road = new mars3d.graphic.CorridorPrimitive({
            var road = new mars3d.graphic.PolylineEntity({
                positions: positions,
                style: {
                    width: 150,
                    width: 8,
                    opacity: 1,
                    //closure: true,
                    height: 0,
                    cornerType: Cesium.CornerType.MITERED,
                    diffHeight: qindex == "co" ? 500 * attr[qindex] :  20 * 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
            });