From 23bf56d279ee4857750c59d4f76c2995b2ae950c Mon Sep 17 00:00:00 2001
From: fuchengshen <men883234@gmail.com>
Date: 星期三, 22 六月 2022 16:26:04 +0800
Subject: [PATCH] before merge

---
 public/hn3d/example/00_hn_new.html |   32 +++++++++++++++++++++++++++++---
 1 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/public/hn3d/example/00_hn_new.html b/public/hn3d/example/00_hn_new.html
index ba0bd68..330878b 100644
--- a/public/hn3d/example/00_hn_new.html
+++ b/public/hn3d/example/00_hn_new.html
@@ -74,14 +74,14 @@
     </div>
   </div>
 
-  <div class="infoview bottomWindows">
+  <!-- <div class="infoview bottomWindows">
     <div>
       <input id="changqu_btn" type="button" class="btn btn-primary" value="鍘傚尯" />
       <input id="meipeng_btn" type="button" class="btn btn-primary" value="鐓ゆ" />
       <input id="pengnei_btn" type="button" class="btn btn-primary" value="妫氬唴" />
     </div>
-  </div>
-  
+  </div> -->
+
   <!-- 鎿嶄綔鎸夐挳鏍� -->
   <div class="infoview infoWindows handle">
     <button type="button" id="meipeng" class="btn btn-primary active" style="width: 100%;">鐓ゆ鏁翠綋</button>
@@ -228,6 +228,9 @@
         },
         control: {
           infoBox: false,
+          timeline: true,
+          clockAnimate: false,
+          distanceLegend: { left: "100px", bottom: "27px" }
         },
         layers: [
           {
@@ -358,8 +361,26 @@
       });
 
 
+      var eventTarget = new mars3d.BaseClass()
       //鍒涘缓涓夌淮鍦扮悆鍦烘櫙
       map = new mars3d.Map("mars3dContainer", mapOptions);
+      var clockAnimate = new mars3d.control.ClockAnimate({
+        format: "yyyy-MM-dd HH:mm:ss"
+      })
+      map.addControl(clockAnimate)
+
+      clockAnimate.on(mars3d.EventType.click, function (event) {
+        if (event.targetType === "label") {
+          console.log("鍗曞嚮浜嗘椂闂存枃鏈尯鍩�", event)
+          console.log(eventTarget, "eventTarget")
+
+          var startTime = Cesium.JulianDate.toDate(map.clock.startTime)
+          var stopTime = Cesium.JulianDate.toDate(map.clock.stopTime)
+          var currentTime = Cesium.JulianDate.toDate(map.clock.currentTime)
+
+          eventTarget.fire("clickShowClockAnimate", { startTime, stopTime, currentTime })
+        }
+      })
 
 
       // 鍒涘缓鏂楄疆鏈哄浘灞�
@@ -640,6 +661,11 @@
 
 
 
+
+
+
+
+
       // 鏂楄疆鏈烘棆杞�
       $("#dou_rote").click(function () {
         // 鏃犲姩鐢绘晥鏋滅殑鏃嬭浆

--
Gitblit v1.9.1