From 3cd5fc1c2fd8ac0fa52050b4c23bb7fd7cbf954a Mon Sep 17 00:00:00 2001 From: ChenZeping02609 <chenzeping02609@163.com> Date: 星期四, 13 五月 2021 14:19:56 +0800 Subject: [PATCH] 企业应急 --- src/conf/layers/LayerSoilGroundWater.js | 34 +++++++++++++++++++--------------- 1 files changed, 19 insertions(+), 15 deletions(-) diff --git a/src/conf/layers/LayerSoilGroundWater.js b/src/conf/layers/LayerSoilGroundWater.js index b75b78d..4177d22 100644 --- a/src/conf/layers/LayerSoilGroundWater.js +++ b/src/conf/layers/LayerSoilGroundWater.js @@ -1,52 +1,56 @@ /** * 鍦熷¥鍙婂湴涓嬫按 */ -const APP_GIS_HOST_2 = 'http://xearth.cn:8088' -const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs' +import { PIPELINE_WFS } from '../Constants' +const WFS_URL = PIPELINE_WFS export const LayerSoilGroundWater = { code: 'sewersSoilGroundWater', name: '鍦熷¥鍙婂湴涓嬫按', - checked: true, + checked: false, + type: 0, layers: [ { code: 'soil', name: '鍦熷¥', sname: '鍦熷¥', // 琛ㄥ悕 - checked: true, // 榛樿閫変腑鐘舵�� - url: WFS_URL + '?TYPENAME=鍏徃', - minZoom: 10 + checked: false, // 榛樿閫変腑鐘舵�� + type: 0, + url: WFS_URL + '?TYPENAME=鍏徃' }, { code: 'groundWater', name: '鍦颁笅姘�', sname: '鍦颁笅姘�', - checked: true, // 榛樿閫変腑鐘舵�� - wfs: WFS_URL + '?TYPENAME=鐮佸ご', - minZoom: 10 + checked: false, // 榛樿閫変腑鐘舵�� + type: 0, + wfs: WFS_URL + '?TYPENAME=鐮佸ご' }, { code: 'firstRiskBlock', name: '涓�绾ч闄╁湴鍧�', sname: '涓�绾ч闄╁湴鍧�', - checked: true, // 榛樿閫変腑鐘舵�� + checked: false, // 榛樿閫変腑鐘舵�� + type: 0, wfs: WFS_URL + '?TYPENAME=瑁呯疆鍖�', - minZoom: 10 + color: 'red' }, { code: 'secondRiskBlock', name: '浜岀骇椋庨櫓鍦板潡', sname: '浜岀骇椋庨櫓鍦板潡', - checked: true, // 榛樿閫変腑鐘舵�� + checked: false, // 榛樿閫変腑鐘舵�� + type: 0, wfs: WFS_URL + '?TYPENAME=瑁呯疆鍖�', - minZoom: 10 + color: 'yellow' }, { code: 'threeRiskBlock', name: '涓夌骇椋庨櫓鍦板潡', sname: '涓夌骇椋庨櫓鍦板潡', - checked: true, // 榛樿閫変腑鐘舵�� + checked: false, // 榛樿閫変腑鐘舵�� + type: 0, wfs: WFS_URL + '?TYPENAME=瑁呯疆鍖�', - minZoom: 10 + color: 'green' } ] } -- Gitblit v1.8.0