From 3725d8463081a03ab3e342bd9610c20cf1ca09c2 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期五, 09 四月 2021 10:43:14 +0800 Subject: [PATCH] 修改为div --- src/components/LayerController/service/WfsLayerService.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/LayerController/service/WfsLayerService.js b/src/components/LayerController/service/WfsLayerService.js index 7f10aee..b263e46 100644 --- a/src/components/LayerController/service/WfsLayerService.js +++ b/src/components/LayerController/service/WfsLayerService.js @@ -29,7 +29,10 @@ } loadData (wfsUrl) { - AjaxUtils.get4JsonDataByUrl(wfsUrl, this.params, (res) => this.draw(res.data.features)) + AjaxUtils.get4JsonDataByUrl(wfsUrl, this.params, (res) => { + console.log(res) + this.draw(res.data.features) + }) } draw (features) { @@ -42,9 +45,9 @@ fillColor: STYLES.FILL_COLOR, color: STYLES.COLOR, fillOpacity: STYLES.FILL_OPACITY, - opacity: STYLES.OPACITY, - dashArray: STYLES.DASH_ARRAY, - dashSpeed: STYLES.DASH_SPPED + opacity: STYLES.OPACITY + // dashArray: STYLES.DASH_ARRAY, + // dashSpeed: STYLES.DASH_SPPED } }, pointToLayer: (geoJsonPoint, latlng) => { -- Gitblit v1.8.0