From 2eb68ceaeac0d455cfe778465367421a27970129 Mon Sep 17 00:00:00 2001 From: ChenZeping02609 <chenzeping02609@163.com> Date: 星期四, 13 五月 2021 14:51:41 +0800 Subject: [PATCH] 企业应急 --- src/conf/layers/LayerHbss.js | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/conf/layers/LayerHbss.js b/src/conf/layers/LayerHbss.js index 5fdeca9..f93be09 100644 --- a/src/conf/layers/LayerHbss.js +++ b/src/conf/layers/LayerHbss.js @@ -1,8 +1,7 @@ /** * 鍖哄煙 */ -import { PIPELINE_WFS } from '../Constants' -const WFS_URL = PIPELINE_WFS +import { SERVICE_TYPE } from '../Constants' export const LayerHbss = { code: 'sewersHbss', name: '鐜繚璁炬柦', @@ -12,9 +11,10 @@ code: 'yj', name: '绐ㄤ簳', sname: '绐ㄤ簳', - checked: true, + checked: false, minZoom: 16, - wfs: WFS_URL + '?TYPENAME=绐ㄤ簳', + type: SERVICE_TYPE.WMS, + wmsLayers: 'sewer:manhole', icon: 'sewers/绐ㄤ簳.png' }, { @@ -23,7 +23,9 @@ sname: '闆ㄧ瀛�', checked: false, minZoom: 16, - wfs: WFS_URL + '?TYPENAME=闆ㄧ瀛�', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:raingate', + // wfs: WFS_URL + '?TYPENAME=闆ㄧ瀛�', icon: 'sewers/闆ㄧ瀛�.png' }, { @@ -31,7 +33,8 @@ name: '闃茬伀鍫�', sname: '闃茬伀鍫�', minZoom: 16, - wfs: WFS_URL + '?TYPENAME=闃茬伀鍫�', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:firedike', checked: false }, { @@ -39,15 +42,17 @@ name: '闆嗘按姹�', sname: '闆嗘按姹�', minZoom: 16, - wfs: WFS_URL + '?TYPENAME=闆嗘按姹�', + typeName: 'sewer:collectingbasin', checked: false, + type: SERVICE_TYPE.WMS, icon: 'sewers/闆嗘按姹�.png' }, { code: 'jlz', name: '鎴祦闂�', sname: '鎴祦闂�', - wfs: WFS_URL + '?TYPENAME=鎴祦闂�', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:collectingbasin', checked: false }, { @@ -55,7 +60,8 @@ name: '婧㈡祦鍫�', sname: '婧㈡祦鍫�', minZoom: 16, - wfs: WFS_URL + '?TYPENAME=婧㈡祦鍫�', + type: SERVICE_TYPE.WMS, + typeName: 'ewer:overflowweir', checked: false }, { @@ -64,7 +70,8 @@ sname: '闅旀补姹�', minZoom: 16, checked: false, - wfs: WFS_URL + '?TYPENAME=闅旀补姹�', + type: SERVICE_TYPE.WMS, + typeName: 'ewer:oilseparator', icon: 'sewers/闅旀补姹�.png' } ] -- Gitblit v1.8.0