From 150a37f948214be4bd183b30f3f2865a6f1c519f Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 29 四月 2021 14:16:18 +0800 Subject: [PATCH] 替换wms服务初步 --- src/conf/layers/LayerFsss.js | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/conf/layers/LayerFsss.js b/src/conf/layers/LayerFsss.js index 0e5db5b..86cc169 100644 --- a/src/conf/layers/LayerFsss.js +++ b/src/conf/layers/LayerFsss.js @@ -13,7 +13,8 @@ name: '绠℃', sname: '绠℃', checked: false, - wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipesegment&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=orgname=\'宸撮櫟鐭冲寲\'' + wmsLayers: 'sewer:pipesegment' + // wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipesegment&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=orgname=\'宸撮櫟鐭冲寲\'' }, { code: 'fourlink', @@ -21,7 +22,8 @@ sname: '鍥涢��', checked: true, minZoom: 16, - wfs: WFS_URL + '?TYPENAME=鍥涢��', + wmsLayers: 'sewer:fourlink', + // wfs: WFS_URL + '?TYPENAME=鍥涢��', icon: 'sewers/鍥涢��.png' }, { @@ -30,7 +32,8 @@ sname: '涓夐��', checked: false, minZoom: 16, - wfs: WFS_URL + '?TYPENAME=涓夐��', + wmsLayers: 'sewer:tee', + // wfs: WFS_URL + '?TYPENAME=涓夐��', icon: 'sewers/涓夐��.png' }, { @@ -61,7 +64,8 @@ minZoom: 10, sname: '闃�闂�', checked: false, - wfs: WFS_URL + '?TYPENAME=闃�闂�', + wmsLayers: 'sewer:valve', + // wfs: WFS_URL + '?TYPENAME=闃�闂�', icon: 'sewers/闃�闂�.png' }, { @@ -70,7 +74,8 @@ sname: '寮ご', minZoom: 16, checked: false, - wfs: WFS_URL + '?TYPENAME=寮ご', + wmsLayers: 'sewer:elbow', + // wfs: WFS_URL + '?TYPENAME=寮ご', icon: 'sewers/寮ご.png' } ] -- Gitblit v1.8.0