管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-22 3f3adb45c6c8c37567122dd9e361f14d88516b3b
src/components/preview_map.vue
@@ -24,7 +24,7 @@
    init3DMap() {
      //地图初始化
      window.sgworld = new SmartEarth.SGWorld("mapdiv", {
        url: SmartEarthRootUrl + "Workers/image/earth.jpg",
        licenseServer: window.sceneConfig.licenseServer,
      });
@@ -34,20 +34,14 @@
      //   destination: Cesium.Cartesian3.fromDegrees(110, 33, 8000000),
      // });
      Viewer.imageryLayers.addImageryProvider(
        new Cesium.UrlTemplateImageryProvider({
          url: gaoDeBaseUrl[1].url,
          maximumLevel: 18
        })
      );
      Viewer._enableInfoOrSelection = false;
      //显示fps
      Viewer.scene.debugShowFramesPerSecond = false;
      //导航控件
      window.sgworld.navControl("nav", false);
      // window.sgworld.navControl("nav", false);
      //比例尺
      window.sgworld.navControl("scale", false);
      // window.sgworld.navControl("scale", false);
      //开启深度检测
      // sg.Analysis.depthTestAgainstTerrain(true)
      Viewer.scene.globe.depthTestAgainstTerrain = true;
@@ -92,7 +86,7 @@
          Viewer.imageryLayers.removeAll();
          var url = res.url.split(';')
          console.log(url)
          sgworld.Creator.createImageryProvider('mpt影像', "wms", {
            url: url[0],