From c9179aa494559b7d376d1d473b3720ae61c1defe Mon Sep 17 00:00:00 2001
From: cshenfu <men883234@gmail.com>
Date: 星期一, 31 十月 2022 17:13:39 +0800
Subject: [PATCH] noChange

---
 js/function_1004.js |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/js/function_1004.js b/js/function_1004.js
index f950a46..f134e23 100644
--- a/js/function_1004.js
+++ b/js/function_1004.js
@@ -66,10 +66,10 @@
       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) {
-      console.log("current_data ==")
       var current_date = new Date(Cesium.JulianDate.toDate(event._currentTime));
       if (current_date.getSeconds() != last_time_second) {
         last_time_second = current_date.getSeconds();
@@ -108,10 +108,12 @@
   var taxi_qindex = map.getLayerById(1004).options.style_selected;
   let single_taxi = taxi_layer.getGraphicById(mars3d.global_variables.singleTaxiReplayData[0]["code"]);
   if (!single_taxi) {
+    console.log("杩涘叆绗竴涓猧f")
     var tmpPositionProperty = new Cesium.SampledPositionProperty();
     for (var i = 0, len = mars3d.global_variables.singleTaxiReplayData.length; i < len; i++) {
       let item = mars3d.global_variables.singleTaxiReplayData[i];
       tmpPositionProperty.addSample(Cesium.JulianDate.fromDate(new Date(item["datatime"])), Cesium.Cartesian3.fromDegrees(item["lon"], item["lat"], 0.2))
+      console.log(tmpPositionProperty,"姹借溅璺嚎缁忕含搴�")
     }
 
     single_taxi = new mars3d.graphic.ModelEntity({
@@ -148,6 +150,7 @@
   }
   tmpattr = getTaxiAttrFromTimeListData(current_date, mars3d.global_variables.singleTaxiReplayData);
   if (tmpattr && tmpattr != null) {
+    console.log("杩涘叆绗簩涓猧f")
     let tmpTaxiColor = getLayerPointColorByQindexandValue(1004, taxi_qindex, tmpattr[taxi_qindex]);
     let tmpTaxigltfurl = "gltf/" + (tmpattr["code"]).substring(0, 2) + tmpTaxiColor.substring(1) + ".gltf";
     single_taxi.setOptions({

--
Gitblit v1.9.1