月球大数据地理空间分析展示平台-【前端】-月球2期前端
WX
2023-09-15 bf35d6b5a12bf713af95b43be7953b4794610170
src/assets/js/Map/index.js
@@ -1,5 +1,5 @@
//配置文件地址
import config from "../../../../public/config/config";
// import config from "../../../../public/config/config";
//服务加载配置文件
import server from "./server";
@@ -39,6 +39,7 @@
    //=======================
    window.Viewer.imageryLayers.removeAll();
    Viewer.scene.globe.depthTestAgainstTerrain = false; // 开启深度测试
    Viewer.animation.container.style.visibility = "hidden";
    Viewer.timeline.container.style.visibility = "hidden";
    //=======================
@@ -48,6 +49,17 @@
    sgworld.Navigate.Stop(); //取消飞行状态
    sgworld.Navigate.setPosition(-1093596.38, 5729026.12, 4136590.41);
  },
  showlonlatLine() {
    window.graticules = new SmartEarth.Cesium.Graticules(
      earthCtrl.Viewer,
      SmartEarth.Cesium.Color.PALEGREEN
    );
    // graticules.makeCoordAxiss();
    earthCtrl.Viewer.scene.preUpdate.addEventListener(function () {
      graticules.update();
    });
  },
  //鼠标左键点击事件添加
  addMouseLeftClickEvents() {
    if (window.handleLeftClick) {