From 03e7be1a4fab29968e8750913db40a1373c577df Mon Sep 17 00:00:00 2001 From: ChenZeping <chenzeping> Date: 星期一, 10 五月 2021 17:28:04 +0800 Subject: [PATCH] 企业应急 --- src/conf/layers/LayerHbss.js | 30 +++++++++++++++++++----------- 1 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/conf/layers/LayerHbss.js b/src/conf/layers/LayerHbss.js index 769f155..dafb46d 100644 --- a/src/conf/layers/LayerHbss.js +++ b/src/conf/layers/LayerHbss.js @@ -1,8 +1,8 @@ /** * 鍖哄煙 */ -const APP_GIS_HOST_2 = 'http://xearth.cn:8088' -const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine2/wfs' +import { PIPELINE_WFS, SERVICE_TYPE } from '../Constants' +const WFS_URL = PIPELINE_WFS export const LayerHbss = { code: 'sewersHbss', name: '鐜繚璁炬柦', @@ -12,9 +12,10 @@ code: 'yj', name: '绐ㄤ簳', sname: '绐ㄤ簳', - checked: true, - minZoom: 10, - wfs: WFS_URL + '?TYPENAME=绐ㄤ簳', + checked: false, + minZoom: 16, + type: SERVICE_TYPE.WMS, + wmsLayers: 'sewer:manhole', icon: 'sewers/绐ㄤ簳.png' }, { @@ -22,15 +23,18 @@ name: '闆ㄧ瀛�', sname: '闆ㄧ瀛�', checked: false, - minZoom: 10, - wfs: WFS_URL + '?TYPENAME=闆ㄧ瀛�', + minZoom: 16, + type: SERVICE_TYPE.WMS, + typeName: 'sewer:raingate', + // wfs: WFS_URL + '?TYPENAME=闆ㄧ瀛�', icon: 'sewers/闆ㄧ瀛�.png' }, { code: 'fht', name: '闃茬伀鍫�', sname: '闃茬伀鍫�', - minZoom: 10, + minZoom: 16, + type: SERVICE_TYPE.WMS, wfs: WFS_URL + '?TYPENAME=闃茬伀鍫�', checked: false }, @@ -38,15 +42,17 @@ code: 'jsc', name: '闆嗘按姹�', sname: '闆嗘按姹�', - minZoom: 10, + minZoom: 16, wfs: WFS_URL + '?TYPENAME=闆嗘按姹�', checked: false, + type: SERVICE_TYPE.WMS, icon: 'sewers/闆嗘按姹�.png' }, { code: 'jlz', name: '鎴祦闂�', sname: '鎴祦闂�', + type: SERVICE_TYPE.WMS, wfs: WFS_URL + '?TYPENAME=鎴祦闂�', checked: false }, @@ -54,7 +60,8 @@ code: 'yly', name: '婧㈡祦鍫�', sname: '婧㈡祦鍫�', - minZoom: 10, + minZoom: 16, + type: SERVICE_TYPE.WMS, wfs: WFS_URL + '?TYPENAME=婧㈡祦鍫�', checked: false }, @@ -62,8 +69,9 @@ code: 'gyd', name: '闅旀补姹�', sname: '闅旀补姹�', - minZoom: 10, + minZoom: 16, checked: false, + type: SERVICE_TYPE.WMS, wfs: WFS_URL + '?TYPENAME=闅旀补姹�', icon: 'sewers/闅旀补姹�.png' } -- Gitblit v1.8.0