| | |
| | | } |
| | | |
| | | reloadData(new_taxi_sn) { |
| | | console.log(new_taxi_sn,"reload") |
| | | |
| | | this.viewWindow.resetStartQueryTaxiDataText(new_taxi_sn); |
| | | this.taxi_sn = new_taxi_sn; |
| | |
| | | position2 = Cesium.Cartesian3.fromDegrees(lng2, lat2); |
| | | } |
| | | item = changeNullAndundefinedToEmpty(item) |
| | | // console.log(item,"路线item",item[this.qindex]) |
| | | let graphic = new mars3d.graphic.PolylineEntity({ |
| | | positions: [position,position2], |
| | | style: { |
| | |
| | | //每个窗口创建完成后调用 |
| | | winCreateOK(opt, result) { |
| | | this.viewWindow = result; |
| | | console.log(this) |
| | | console.log(this.config.params,"this.taxi_sn") |
| | | this.appDateHourStart = mars3d.global_variables.queryDataTStartTaxi; |
| | | this.appDateHourEnd = mars3d.global_variables.queryDataTEnd; |
| | | this.nodejs_url_predix = mars3d.global_variables.nodejs_url_predix; |
| | |
| | | } |
| | | //打开激活 |
| | | activate() { |
| | | console.log(this,"this.map") |
| | | this.map.addLayer(this.groupLayer); |
| | | this.map.clock.shouldAnimate = false; |
| | | this.old_map_clock_startTime = this.map.clock.startTime; |
| | |
| | | this.map.clock.currentTime = Cesium.JulianDate.fromDate(new Date(this.appDateHourStart)); |
| | | this.map.clock.stopTime = Cesium.JulianDate.fromDate(new Date(this.appDateHourEnd)); |
| | | this.map.clock.multiplier = 2.0; |
| | | console.log(this.map._layerCache["1004"].options.show,"taxi_layer.shouw") |
| | | |
| | | } |
| | | //============开始视角跟随============= |