From 024e4126dd4f7e66b9043d0acc67697027520011 Mon Sep 17 00:00:00 2001 From: hbao Date: Thu, 17 Mar 2022 22:54:58 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Map/MapGisDrawing.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Map/MapGisDrawing.vue b/src/components/Map/MapGisDrawing.vue index 623160b6..9cfe652c 100644 --- a/src/components/Map/MapGisDrawing.vue +++ b/src/components/Map/MapGisDrawing.vue @@ -566,6 +566,7 @@ export default { //var Zb; //村边界查询开始 ------------------------------start var cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'"; + console.log(cql_filter); var cunTc= new ol.layer.Image({ source: new ol.source.ImageWMS({ url: that.mapGeoServerUrl +"/geoserver/zjd_dc/wms", @@ -606,7 +607,7 @@ export default { }) .then((data) => { console.log(data); - let resolution = that.map.getView().getResolutionForExtent(data.bbox,map.getSize()); + let resolution = that.map.getView().getResolutionForExtent(data.bbox,that.map.getSize()); resolution:resolution + Math.random() * 0.00000001, that.map.getView().fit(data.bbox); that.map.getView().setResolution(resolution);