管道基础大数据平台系统开发-【前端】-新系統界面
TreeWish
2023-02-24 3ee7f5e8b40712ccded0a24bd3a0a0db74cbb3c0
添加地形晕眩图功能
已修改2个文件
26 ■■■■■ 文件已修改
src/components/Screen/bottom.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Screen/mapsdk.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Screen/bottom.vue
@@ -285,7 +285,7 @@
          return {
            name: item.projname,
            id: item.projname,
            wkt: item.st_astext,
            wkt: item.wkt,
          }
        })
    
src/components/Screen/mapsdk.vue
@@ -5,6 +5,7 @@
</template>
<script>
let yunxuanLayer = null
export default {
  name: "",
  components: {},
@@ -13,6 +14,29 @@
  },
  mounted() {
    this.init3DMap()
    this.$bus.$on("changeProject", name => {
      if (!yunxuanLayer) {
        var urls = "https://tiles3.geovisearth.com/base/v1/ter"
        // 星图地球地形晕渲
        yunxuanLayer = sgworld.Creator.createUrlTemplateImageryProvider(
          "星图地球地形晕渲",
          {
            url:
              urls +
              "/{z}/{x}/{y}?format=webp&token=486dac3bec56d7d7c2a581c150be2bd937462f1e8f3bc9c78b5658b396122405",
          },
          "0",
          undefined,
          true,
          ""
        )
      }
      if (name.includes("管网")) {
        yunxuanLayer.item.show = true
      } else {
        yunxuanLayer.item.show = false
      }
    })
  },
  methods: {
    init3DMap() {