| | |
| | | // import { Store } from "vuex"; |
| | | import store from "@/store"; |
| | | import temporaryTool from "./temporaryTools"; |
| | | |
| | | import { getToken } from "@/utils/auth"; |
| | | const menuTool = { |
| | | toolMenu: null, |
| | | toolFlag: null, |
| | |
| | | }); |
| | | |
| | | }, |
| | | 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', |
| | |
| | | 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; |