| | |
| | | mars3d.global_variables.singleTaxiReplayData |
| | | var current_date = new Date(Cesium.JulianDate.toDate(event._currentTime)); |
| | | if (current_date.getSeconds() != last_time_second) { |
| | | console.log("current_data != ") |
| | | last_time_second = current_date.getSeconds(); |
| | | console.log(current_date,"current_data data") |
| | | changeTaxiLayerStyleAndAttr_Single(getFormattedDateTime(current_date)); |
| | | } |
| | | } else if (map.getLayerById(1004).options.show) { |
| | |
| | | } |
| | | tmpattr = getTaxiAttrFromTimeListData(current_date, mars3d.global_variables.singleTaxiReplayData); |
| | | if (tmpattr && tmpattr != null) { |
| | | console.log("进入第二个if") |
| | | let tmpTaxiColor = getLayerPointColorByQindexandValue(1004, taxi_qindex, tmpattr[taxi_qindex]); |
| | | let tmpTaxigltfurl = "gltf/" + (tmpattr["code"]).substring(0, 2) + tmpTaxiColor.substring(1) + ".gltf"; |
| | | single_taxi.setOptions({ |
| | |
| | | } |
| | | |
| | | function getTaxiPathFromServerbySN(taxi_mn, target_layer) { |
| | | $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + taxi_mn["code"], { |
| | | $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_real&siteid=" + taxi_mn["code"], { |
| | | datatime1: mars3d.global_variables.queryDataTStartTaxi, |
| | | datatime2: mars3d.global_variables.queryDataTEnd |
| | | }, (result) => { |