fuchengshen
2022-06-22 23bf56d279ee4857750c59d4f76c2995b2ae950c
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 () {
        // 无动画效果的旋转