From db045eec6cc5024b390968a96d76c7d33351ace3 Mon Sep 17 00:00:00 2001 From: hbao Date: Tue, 1 Mar 2022 18:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Map/MapGisDrawing.vue | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/components/Map/MapGisDrawing.vue b/src/components/Map/MapGisDrawing.vue index c559dda8..4f264e6e 100644 --- a/src/components/Map/MapGisDrawing.vue +++ b/src/components/Map/MapGisDrawing.vue @@ -114,6 +114,21 @@ export default { }), }); that.mapData= that.message; + //宅基地图层查询开始 ------------------start + var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'"; + var zjdTc= new ol.layer.Tile({ + source: new ol.source.TileWMS({ + url: "http://116.255.223.226:8080/geoserver/zjd_dc/wms", + params: { + LAYERS: 'zjd_dc:t_house_survey_zjdzd', + TILED: true, + cql_filter: cql_filter_all, + SRID: 3857, + }, + }), + }); + map.addLayer(zjdTc); + //宅基地图层查询开始 ------------------start //图层查询定位开始 ---------start if(this.message.substring(0,1) =="{"){ //that.newHt ="1"; @@ -539,6 +554,21 @@ export default { }); map.addLayer(cunTc); //村边界查询开始 ------------------------------end + //宅基地图层查询开始 ------------------start + var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'"; + var zjdTc= new ol.layer.Tile({ + source: new ol.source.TileWMS({ + url: "http://116.255.223.226:8080/geoserver/zjd_dc/wms", + params: { + LAYERS: 'zjd_dc:t_house_survey_zjdzd', + TILED: true, + cql_filter: cql_filter_all, + SRID: 3857, + }, + }), + }); + map.addLayer(zjdTc); + //宅基地图层查询开始 ------------------start // getQueryLand().then((response) => { // if (response.code == 200) { // let InsertCode = response.data;