月球大数据地理空间分析展示平台-【前端】-月球2期前端
surprise
2024-03-01 12075d0fa73d963ff5d6dbc4727fb95fb6084961
src/assets/js/Map/menuTool.js
@@ -6,7 +6,7 @@
// import { Store } from "vuex";
import store from "@/store";
import temporaryTool from "./temporaryTools";
import { getToken } from "@/utils/auth";
const menuTool = {
  toolMenu: null,
  toolFlag: null,
@@ -174,10 +174,19 @@
    });
  },
  getLayrUrl(res) {
    var url;
    if (res.indexOf('{token}')>-1) {
      const token = getToken();
      url = config.proxy + res.replaceAll("{token}", token);
    } else {
      url = res;
    }
    return url;
  },
  addTMSLayer(obj) {
    var esri = new Cesium.WebMapServiceImageryProvider({
      url: config.esri,
      name: 'esriLayer',
@@ -645,6 +654,8 @@
    window.rightViewer.imageryLayers.removeAll();
    window.rightViewer = DoubleScreen.right._Viewer;
    window.rightViewer.animation.container.style.visibility = "hidden";
    window.rightViewer.scene.sun.show = false; //隐藏太阳和月亮
    window.rightViewer.scene.moon.show = false;
    // window.rightViewer.timeline.container.style.visibility = "hidden";
    //大气层
    window.rightViewer.scene.globe.showGroundAtmosphere = false;