From b9e11f18c961df43f632b85c04cd730bde21fc76 Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期一, 19 四月 2021 13:10:58 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/conf/layers/LayerPipeLines.js | 81 +++++++++++++++++++++++++++-------------
1 files changed, 55 insertions(+), 26 deletions(-)
diff --git a/src/conf/layers/LayerPipeLines.js b/src/conf/layers/LayerPipeLines.js
index 4209ddc..4686fd6 100644
--- a/src/conf/layers/LayerPipeLines.js
+++ b/src/conf/layers/LayerPipeLines.js
@@ -1,51 +1,67 @@
/**
* 绠$綉
*/
-const APP_GIS_HOST_2 = 'http://xearth.cn:8088'
-const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs'
+import { LayerHbss } from './LayerHbss'
+import { LayerFsss } from './LayerFsss'
+
+import { PIPELINE_WFS } from '../Constants'
+const WFS_URL = PIPELINE_WFS
export const LayerPipeLines = {
code: 'sewersPipeLines',
name: '绠$嚎',
- checked: true,
+ checked: false,
+ childLayer: [LayerFsss, LayerHbss],
layers: [
{
code: 'rainline',
name: '闆ㄦ按绾�',
- sname: '闆ㄦ按绾�',
- checked: true,
- wfs: WFS_URL + '?TYPENAME=绠$綉',
- minZoom: 10 // 鍦ㄦ寚瀹氱骇鍒樉绀�
+ sname: '绠$綉',
+ checked: false,
+ // 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=50&outputFormat=application%2Fjson&cql_filter=linenumtype=\'闆ㄦ按绠$嚎\'',
+ icon: 'sewers/闆ㄦ按绾�.png',
+ color: '#0070ff',
+ minZoom: 13,
+ styles: {
+ COLOR: '#0070ff',
+ FILL_COLOR: '#0070ff'
+ }
},
{
code: 'accidentline',
name: '浜嬫晠姘寸嚎',
sname: '浜嬫晠姘�',
- checked: true, // 榛樿閫変腑鐘舵��
- wfs: WFS_URL + '?TYPENAME=浜嬫晠姘�',
- minZoom: 10
+ checked: false,
+ minZoom: 13,
+ wfs: WFS_URL + '?TYPENAME=浜嬫晠姘�'
},
{
code: 'oilline',
name: '鍚补姹℃按绾�',
sname: '鍚补姹℃按',
- checked: true, // 榛樿閫変腑鐘舵��
- wfs: WFS_URL + '?TYPENAME=鍚补姹℃按',
- minZoom: 10
+ checked: false,
+ minZoom: 13,
+ color: '#ffaa00',
+ wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鍚补姹℃按\'',
+ styles: {
+ COLOR: '#ffaa00',
+ FILL_COLOR: '#ffaa00'
+ }
},
{
code: 'saltline',
name: '鍚洂姹℃按绾�',
sname: '鍚洂姹℃按',
- checked: true, // 榛樿閫変腑鐘舵��
- wfs: WFS_URL + '?TYPENAME=鍚洂姹℃按',
- minZoom: 10
+ checked: false,
+ minZoom: 13,
+ wfs: WFS_URL + '?TYPENAME=鍚洂姹℃按'
},
{
code: 'alkaliline',
name: '鍚⒈姹℃按绾�',
sname: '鍚⒈姹℃按',
- checked: true, // 榛樿閫変腑鐘舵��
+ checked: false,
wfs: WFS_URL + '?TYPENAME=鍚⒈姹℃按',
minZoom: 10
},
@@ -53,25 +69,38 @@
code: 'lifeline',
name: '鐢熸椿姹℃按',
sname: '鐢熸椿姹℃按',
- checked: true, // 榛樿閫変腑鐘舵��
- wfs: WFS_URL + '?TYPENAME=鐢熸椿姹℃按',
- minZoom: 10
+ checked: false,
+ minZoom: 13,
+ wfs: WFS_URL + '?TYPENAME=鐢熸椿姹℃按'
},
{
code: 'purifyline',
name: '鍑�鍖栨按绾�',
sname: '鍑�鍖栨按',
- checked: true, // 榛樿閫変腑鐘舵��
- wfs: WFS_URL + '?TYPENAME=鍑�鍖栨按',
- minZoom: 10
+ checked: false,
+ minZoom: 13,
+ wfs: WFS_URL + '?TYPENAME=鍑�鍖栨按'
},
{
code: 'loopline',
name: '寰幆姘寸嚎',
sname: '寰幆姘�',
- checked: true, // 榛樿閫変腑鐘舵��
- wfs: WFS_URL + '?TYPENAME=寰幆姘�',
- minZoom: 10
+ checked: false,
+ minZoom: 13,
+ wfs: WFS_URL + '?TYPENAME=寰幆姘�'
+ },
+ {
+ code: 'buildline',
+ name: '鐢熶骇姹℃按',
+ sname: '鐢熶骇姹℃按',
+ checked: false,
+ minZoom: 13,
+ color: '#a8a800',
+ wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鐢熶骇姹℃按\'',
+ styles: {
+ COLOR: '#a8a800',
+ FILL_COLOR: '#a8a800'
+ }
}
]
}
--
Gitblit v1.8.0