From e1fb89c19e29447b108d3b959e222049a6b02e93 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 29 四月 2021 17:52:35 +0800
Subject: [PATCH] fix bug

---
 src/conf/layers/LayerPipeLines.js |   38 ++++++++++++++++++++++++++++++--------
 1 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/src/conf/layers/LayerPipeLines.js b/src/conf/layers/LayerPipeLines.js
index 016ba63..bb746d9 100644
--- a/src/conf/layers/LayerPipeLines.js
+++ b/src/conf/layers/LayerPipeLines.js
@@ -11,6 +11,7 @@
   code: 'sewersPipeLines',
   name: '绠$嚎',
   checked: false,
+  type: 0,
   childLayer: [LayerFsss, LayerHbss],
   layers: [
     {
@@ -18,8 +19,9 @@
       name: '闆ㄦ按绾�',
       sname: '绠$綉',
       checked: false,
+      type: 0,
+      wmsLayers: 'sewer:pipeline_rain',
       // wfs: WFS_URL + '?TYPENAME=绠$綉&FILTER=<Filter xmlns="http://www.opengis.net/ogc"><PropertyIsEqualTo><PropertyName>mediumtype</PropertyName><Literal>闆ㄦ按绠$嚎</Literal></PropertyIsEqualTo></Filter>',
-      wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=linenumtype=\'闆ㄦ按绠$嚎\'',
       icon: 'sewers/闆ㄦ按绾�.png',
       color: '#0070ff',
       minZoom: 13,
@@ -30,20 +32,24 @@
     },
     {
       code: 'accidentline',
-      name: '浜嬫晠姘寸嚎',
+      name: '浜嬫晠姘�',
       sname: '浜嬫晠姘�',
       checked: false,
+      // wmsLayers: 'sewer:pipeline_accident',
+      type: 0,
       minZoom: 13,
       wfs: WFS_URL + '?TYPENAME=浜嬫晠姘�'
     },
     {
       code: 'oilline',
-      name: '鍚补姹℃按绾�',
+      name: '鍚补姹℃按',
       sname: '鍚补姹℃按',
       checked: false,
+      type: 0,
       minZoom: 13,
       color: '#ffaa00',
-      wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鍚补姹℃按\'',
+      wmsLayers: 'sewer:pipeline_sewer',
+      // wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鍚补姹℃按\'',
       styles: {
         COLOR: '#ffaa00',
         FILL_COLOR: '#ffaa00'
@@ -51,18 +57,30 @@
     },
     {
       code: 'saltline',
-      name: '鍚洂姹℃按绾�',
+      name: '鍚洂姹℃按',
       sname: '鍚洂姹℃按',
       checked: false,
+      type: 0,
       minZoom: 13,
       wfs: WFS_URL + '?TYPENAME=鍚洂姹℃按'
     },
     {
       code: 'alkaliline',
-      name: '鍚⒈姹℃按绾�',
+      name: '鍚⒈姹℃按',
       sname: '鍚⒈姹℃按',
       checked: false,
+      type: 0,
       wfs: WFS_URL + '?TYPENAME=鍚⒈姹℃按',
+      minZoom: 10
+    },
+    {
+      code: 'sulfurline',
+      name: '鍚~姹℃按',
+      sname: '鍚~姹℃按',
+      checked: false,
+      type: 0,
+      wmsLayers: 'sewer:pipeline_sulfur',
+      // wfs: WFS_URL + '?TYPENAME=鍚⒈姹℃按',
       minZoom: 10
     },
     {
@@ -70,21 +88,24 @@
       name: '鐢熸椿姹℃按',
       sname: '鐢熸椿姹℃按',
       checked: false,
+      type: 0,
       minZoom: 13,
       wfs: WFS_URL + '?TYPENAME=鐢熸椿姹℃按'
     },
     {
       code: 'purifyline',
-      name: '鍑�鍖栨按绾�',
+      name: '鍑�鍖栨按',
       sname: '鍑�鍖栨按',
       checked: false,
+      type: 0,
       minZoom: 13,
       wfs: WFS_URL + '?TYPENAME=鍑�鍖栨按'
     },
     {
       code: 'loopline',
-      name: '寰幆姘寸嚎',
+      name: '寰幆姘�',
       sname: '寰幆姘�',
+      type: 0,
       checked: false,
       minZoom: 13,
       wfs: WFS_URL + '?TYPENAME=寰幆姘�'
@@ -94,6 +115,7 @@
       name: '鐢熶骇姹℃按',
       sname: '鐢熶骇姹℃按',
       checked: false,
+      type: 0,
       minZoom: 13,
       color: '#a8a800',
       wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鐢熶骇姹℃按\'',

--
Gitblit v1.8.0