| | |
| | | // refresh Taxi Replay Detail table: |
| | | // assum that detailed widget is active; |
| | | let taxiReplayWiget = mars3d.widget.getClass("widgetsTS/taxiRouteReplay/widget.js"); |
| | | taxiReplayWiget.refreshDetailTable(tmpattr); |
| | | let taxiReplayWiget2 = mars3d.widget.getClass("widgetsTS/taxiRouteReplay2/widget.js"); |
| | | let taxiReplayWiget_end = taxiReplayWiget2 == undefined?taxiReplayWiget:taxiReplayWiget2; |
| | | taxiReplayWiget_end.refreshDetailTable(tmpattr); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | //开始查询轨迹 |
| | | $("#startQueryTaxiData").click(function () { |
| | | console.log(thisWidget.taxi_sn,"汽车编号") |
| | | haoutil.loading.show(); |
| | | thisWidget.appDateHourStart = $("#appDateHourStart").val() |
| | | thisWidget.appDateHourEnd = $("#appDateHourEnd").val() |
| | |
| | | datatime1: thisWidget.appDateHourStart, |
| | | datatime2: thisWidget.appDateHourEnd |
| | | }, (result) => { |
| | | console.log(result,"result") |
| | | haoutil.loading.hide(); |
| | | thisWidget.clearReplayLayers(); |
| | | if (result.data.result.length > 0) { |
| | |
| | | } |
| | | |
| | | clearReplayLayers() { |
| | | console.log(this,"this") |
| | | this.pointLayer.clear(); |
| | | this.routeLayer.clear(); |
| | | } |
| | |
| | | datatime1: thisWidget.appDateHourStart, |
| | | datatime2: thisWidget.appDateHourEnd |
| | | }, (result) => { |
| | | console.log(result,"result") |
| | | haoutil.loading.hide(); |
| | | thisWidget.clearReplayLayers(); |
| | | if (result.data.result.length > 0) { |
| | |
| | | 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") |
| | | |
| | | } |
| | | //============开始视角跟随============= |
| | |
| | | } |
| | | //打开激活 |
| | | activate() { |
| | | console.log(map,"mapmapmap") |
| | | map.viewer.animation.container.style.display = "block"; |
| | | } |
| | | //关闭释放 |