| | |
| | | return { |
| | | name: item.projname, |
| | | id: item.projname, |
| | | wkt: item.st_astext, |
| | | wkt: item.wkt, |
| | | } |
| | | }) |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | let yunxuanLayer = null |
| | | export default { |
| | | name: "", |
| | | components: {}, |
| | |
| | | }, |
| | | 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() { |