| | |
| | | } |
| | | |
| | | 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 |
| | | }); |