wangzhibo
2021-12-17 9707e3f2b23cacaa6d219f7a000865cda4ecb99c
widgetsTS/widget_search/widget.js
@@ -129,9 +129,9 @@
                    color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex]),
                    alphaPower: 1.5,
                    //高亮时的样式(默认为鼠标移入,也可以指定type:'click'单击高亮),构造后也可以openHighlight、closeHighlight方法来手动调用
                    highlight: {
                        color: "#ff0000",
                    },
                    // highlight: {
                    //     color: "#ff0000",
                    // },
                },
                attr: attr
            });
@@ -143,9 +143,9 @@
            var circleDiffuseWallGlow = new mars3d.graphic.DiffuseWall({
                position: Cesium.Cartesian3.fromDegrees(attr["lon"], attr["lat"], 20), //圆中心点
                style: {
                    diffHeight: qindex == "co" ? 10 * attr[qindex] :  attr[qindex], //高度
                    diffHeight: qindex == "co" ? 10 * attr[qindex] :  attr[qindex] || attr[qindex] == "/" ? 800 : attr[qindex], //高度
                    radius: 200, //半径
                    color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex]),
                    color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex] || "#C0C0C0"),
                    speed: 10, //速度
                },
                attr: attr
@@ -158,12 +158,12 @@
                positions: positions,
                style: {
                    closure: true,
                    diffHeight: qindex == "co" ? 10 * attr[qindex] :  attr[qindex], //高度
                    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]),
                        color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex] || "#C0C0C0"),
                        speed: 10, //速度,建议取值范围1-100
                    }),
                },