From ad9c4fbf43e6b58e0019e04878ad0935ae811b8d Mon Sep 17 00:00:00 2001 From: 陈泽平 <chenzeping> Date: 星期一, 31 五月 2021 10:28:20 +0800 Subject: [PATCH] 企业应急-事件上报布局问题修改 --- src/components/helpers/MapManager.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/components/helpers/MapManager.js b/src/components/helpers/MapManager.js index eae4b26..c3ec889 100644 --- a/src/components/helpers/MapManager.js +++ b/src/components/helpers/MapManager.js @@ -44,7 +44,7 @@ var point = this.map.latLngToContainerPoint(latlng, this.map.getZoom()) const wmsLayerService = window.layerFactory.wmsLayerService const layers = wmsLayerService.wmsLayerList.getLayers() - // const filters = wmsLayerService.wmsLayerList.getFilters() + const filters = wmsLayerService.wmsLayerList.getFilters() const wmsParams = Object.assign({ LAYERS: layers, QUERY_LAYERS: layers, @@ -54,6 +54,9 @@ Y: Math.round(point.y), BBOX: this.map.getBounds().toBBoxString() }, this.defaultWmsParams, params) + if (filters) { + wmsParams.CQL_FILTER = filters + } AjaxUtils.get4JsonDataByUrl(WMS_URL, wmsParams, (res) => { resolve(res.data) }) -- Gitblit v1.8.0