From 620a74fdfa4fe6e7923e2ec48991bee99980ced4 Mon Sep 17 00:00:00 2001 From: hbao Date: Fri, 18 Mar 2022 12:09:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E9=87=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/list.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue index 4538d39d..11d98e6c 100644 --- a/src/views/homesteadSurvey/list.vue +++ b/src/views/homesteadSurvey/list.vue @@ -3010,6 +3010,9 @@ var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY; //定位查询位置 var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 + that.clickBbox = center; + console.log(that.mapZjdData); + that.textMjAll = that.mapZjdData.zdmj; map.getView().animate({ // 只设置需要的属性即可 center: center, // 中心点 @@ -3054,6 +3057,9 @@ var minYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.minY; //定位查询位置 var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 + that.clickBbox = center; + console.log(that.mapZjdData); + that.textMjAll = that.mapZjdData.zdmj; map.getView().animate({ // 只设置需要的属性即可 center: center, // 中心点 @@ -4068,7 +4074,7 @@ $("#area").click(function () { console.log(that.textMjAll); console.log(that.clickBbox); - if(that.textMjAll ==null){ + if(that.textMjAll ==null || that.textMjAll ==""){ that.textMjAll =0; } if((that.textMjAll != "" && that.clickBbox !="") || (that.textMjAll == 0 && that.clickBbox !="")){