| | |
| | | }, |
| | | }); |
| | | this.pointLayer.addGraphic(this.endGraphic); |
| | | |
| | | var Pointsdata = mars3d.global_variables.singleTaxiReplayData |
| | | 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); |
| | | } |
| | | item = changeNullAndundefinedToEmpty(item) |
| | | let graphic = new mars3d.graphic.PolylineEntity({ |
| | | positions: points, |
| | | style: { |
| | | width: 10, |
| | | material: new mars3d.material.LineFlowMaterialProperty({ |
| | | color: Cesium.Color.AQUA, |
| | | color:this.viewWindow.getLayerPointColorByQindexandValue(1004,this.qindex, item[this.qindex]), |
| | | image: "./img/textures/arrow2.png", |
| | | repeat: new Cesium.Cartesian2(50, 1), |
| | | speed: 40, //速度,建议取值范围1-100 |
| | | repeat: new Cesium.Cartesian2(30, 1), |
| | | speed: 30, //速度,建议取值范围1-100 |
| | | }) |
| | | }, |
| | | }); |
| | | this.routeLayer.addGraphic(graphic); |
| | | this.routeLayer.flyTo(); |
| | | } |
| | | }} |
| | | |
| | | addTaxiPointInfoGraphic() { |
| | | var Pointsdata = mars3d.global_variables.singleTaxiReplayData |