| | |
| | | }} |
| | | |
| | | addTaxiPointInfoGraphic() { |
| | | var Pointsdata = mars3d.global_variables.singleTaxiReplayData |
| | | var Pointsdata = mars3d.global_variables.singleTaxiReplayData; |
| | | var points = []; |
| | | for (var i = 0, len = Pointsdata.length; i < len; i++) { |
| | | var item = Pointsdata[i]; |
| | | var lng = Number(item["lon"]); //经度 |
| | | var lat = Number(item["lat"]); //纬度 |
| | | var position = null; |
| | | if (lng && lat) { |
| | | position = Cesium.Cartesian3.fromDegrees(lng, lat); |
| | | } |
| | | // var position = null; |
| | | // if (lng && lat) { |
| | | // //position = Cesium.Cartesian3.fromDegrees(lng, lat); |
| | | // } |
| | | points[Pointsdata.length] = [lng, lat]; |
| | | |
| | | item = changeNullAndundefinedToEmpty(item) |
| | | var CircleEntity = new mars3d.graphic.CircleEntity({ |
| | | position: position, |
| | | var CorridorPrimitive = new mars3d.graphic.CorridorPrimitive({ |
| | | position: points, |
| | | style: { |
| | | radius: 8.0, |
| | | diffHeight: this.qindex == "co" ? 20 * item[this.qindex] : item[this.qindex], //高度 |
| | | with: 50, |
| | | height: 0, |
| | | diffHeight: this.qindex == "co" ? 1000 * item[this.qindex] : item[this.qindex] || item[qindex] == "/" ? 3000 : item[qindex], //高度 |
| | | color:this.viewWindow.getLayerPointColorByQindexandValue(1004,this.qindex, item[this.qindex]), |
| | | opacity: 0.5, |
| | | rotationDegree: 45, |
| | | highlight: { |
| | | opacity: 1 |
| | | } |
| | |
| | | "<tr><td>CO:</td><td align= right>" + item["co"] + ' ' + "</td><td>mg/m³</td></tr>" + |
| | | "</table>" |
| | | }); |
| | | this.routeLayer.addGraphic(CircleEntity); |
| | | this.routeLayer.addGraphic(CorridorPrimitive); |
| | | } |
| | | this.routeLayer.flyTo(); |
| | | } |