From 1952516f71591d5ecf2ba955406cf2b735864bf2 Mon Sep 17 00:00:00 2001 From: ChenZeping <chenzeping> Date: 星期四, 29 四月 2021 16:19:24 +0800 Subject: [PATCH] 问题修改 --- src/components/LayerController/service/WfsLayerService.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/LayerController/service/WfsLayerService.js b/src/components/LayerController/service/WfsLayerService.js index 0c601a2..606d84a 100644 --- a/src/components/LayerController/service/WfsLayerService.js +++ b/src/components/LayerController/service/WfsLayerService.js @@ -1,5 +1,5 @@ /** - * 鍔犺浇涓氬姟鏁版嵁鍥惧眰 + * 鍔犺浇wfs鏈嶅姟鍥惧眰 */ import { STYLES } from '../../../conf/Constants' import AjaxUtils from '../../../utils/AjaxUtils' @@ -85,7 +85,10 @@ const icon = this.config.icon const type = e.target.feature.geometry.type if (type === 'LineString' || type === 'MultiLineString') { - layer.setStyle({ weight: 8, color: '#00ffff' }) + layer.setStyle({ + weight: 8, + color: '#00ffff' + }) } else if (type === 'Point' || type === 'MultiPoint') { layer.setStyle({ img: { @@ -101,7 +104,10 @@ const icon = this.config.icon const type = e.target.feature.geometry.type if (type === 'LineString' || type === 'MultiLineString') { - layer.setStyle({ weight: STYLES.WEIGHT, color: STYLES.COLOR }) + layer.setStyle({ + weight: STYLES.WEIGHT, + color: STYLES.COLOR + }) } if (type === 'Point' || type === 'MultiPoint') { layer.setStyle({ @@ -127,4 +133,5 @@ return name } } + export default WfsLayerService -- Gitblit v1.8.0