From dabe6f1b9544223604ce533edfa1710c415a8121 Mon Sep 17 00:00:00 2001 From: 陈泽平 <qibolin02429@126.com> Date: 星期五, 14 五月 2021 16:26:05 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/LayerController/service/WmsLayerService.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/components/LayerController/service/WmsLayerService.js b/src/components/LayerController/service/WmsLayerService.js index 076340e..fbc74bd 100644 --- a/src/components/LayerController/service/WmsLayerService.js +++ b/src/components/LayerController/service/WmsLayerService.js @@ -92,6 +92,7 @@ var size = this.map.getSize() // const bbox = this.L.latLngBounds(this.L.latLng(e.latlng.lng, e.latlng.lat)).toBBoxString() const layers = this.wmsLayerList.getLayers() + const filter = this.wmsLayerList.getFilters() if (layers.length > 0) { const params = Object.assign({ LAYERS: layers, @@ -102,6 +103,9 @@ Y: Math.round(point.y), BBOX: this.map.getBounds().toBBoxString() }, this.params) + if (filter.length > 0) { + params.cql_filter = filter + } AjaxUtils.get4JsonDataByUrl(WMS_URL, params, (res) => { const features = res.data.features /** -- Gitblit v1.8.0