From 6e0ef2d1f836680e6a55b7fc2d813b759038c144 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 25 十月 2022 15:35:34 +0800 Subject: [PATCH] 路径规划,底图切换 --- src/views/Synthesis/analyse.vue | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/src/views/Synthesis/analyse.vue b/src/views/Synthesis/analyse.vue index 719a398..e0750d1 100644 --- a/src/views/Synthesis/analyse.vue +++ b/src/views/Synthesis/analyse.vue @@ -17,6 +17,7 @@ </template> <script> +import $ from 'jquery'; // 娴嬮噺-淇℃伅寮圭獥 import mapinfo from '../Tools/mapinfo.vue'; export default { @@ -94,6 +95,34 @@ } elevationTool.render(); break; + case '3': + var value = { + name: 'Analysis', + id: 3, + }; + this.$bus.$emit('mapChangeBox', value); + // var jsonurl = + // 'http://192.168.20.39:9055/gisserver/wnsserver/beijingdaohang_wns?start=' + + // '116.0867468497,39.937314280233' + + // '&end=' + + // '116.0860003269,39.936289981725' + + // '&propertyName=Shape&tolerance=500&request=FindPath&format=json'; + // $.ajax({ + // url: jsonurl, + // async: false, + // type: 'GET', + // dataType: 'json', + // contentType: 'application/json;charset=utf-8', + // success: (data) => { + // data.features.forEach((e) => { + // if (e.geometry.type == 'LineString') { + // //this.executeFly3D(e.geometry.coordinates); + // this.executeFly3D(e.geometry.coordinates); + // } + // }); + // }, + // }); + break; case '4': if (window.AnalysisDXPM) { this.clear(res.id); -- Gitblit v1.9.3