From 48986a9e1c74b27776122c20997b95924d711157 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期三, 31 三月 2021 16:51:33 +0800 Subject: [PATCH] 图层配置 --- src/conf/layers/LayerArea.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/conf/layers/LayerArea.js b/src/conf/layers/LayerArea.js index b4dd2b9..f3b9da5 100644 --- a/src/conf/layers/LayerArea.js +++ b/src/conf/layers/LayerArea.js @@ -1,6 +1,8 @@ /** * 鍖哄煙 */ +const APP_GIS_HOST_2 = 'http://xearth.cn:8088' +const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs' export const LayerArea = { code: 'sewersArea', name: '鍖哄煙淇℃伅', @@ -11,7 +13,7 @@ name: '鍏徃', sname: '鍏徃', // 琛ㄥ悕 checked: true, // 榛樿閫変腑鐘舵�� - url: '?TYPENAME=绠$綉', + wfs: WFS_URL + '?TYPENAME=鍏徃', minZoom: 10, // 鍦ㄦ寚瀹氱骇鍒樉绀� childLayer: 'fsss,hbss' // 鍏宠仈PointLayers }, @@ -20,7 +22,7 @@ name: '鐮佸ご', sname: '鐮佸ご', checked: true, // 榛樿閫変腑鐘舵�� - wfs: '?TYPENAME=鍚补姹℃按', + wfs: WFS_URL + '?TYPENAME=鐮佸ご', minZoom: 10, childLayer: 'fsss,hbss' // 鍏宠仈PointLayers }, @@ -29,7 +31,7 @@ name: '瑁呯疆鍖�', sname: '瑁呯疆鍖�', checked: true, // 榛樿閫変腑鐘舵�� - wfs: '?TYPENAME=鍚洂姹℃按', + wfs: WFS_URL + '?TYPENAME=瑁呯疆鍖�', minZoom: 10 } ] -- Gitblit v1.8.0