From 3cd5fc1c2fd8ac0fa52050b4c23bb7fd7cbf954a Mon Sep 17 00:00:00 2001
From: ChenZeping02609 <chenzeping02609@163.com>
Date: 星期四, 13 五月 2021 14:19:56 +0800
Subject: [PATCH] 企业应急
---
src/conf/layers/LayerEntEmer.js | 81 ++++++++++++++++++++++++++--------------
1 files changed, 52 insertions(+), 29 deletions(-)
diff --git a/src/conf/layers/LayerEntEmer.js b/src/conf/layers/LayerEntEmer.js
index 283e161..1159213 100644
--- a/src/conf/layers/LayerEntEmer.js
+++ b/src/conf/layers/LayerEntEmer.js
@@ -1,68 +1,91 @@
/**
- * 浼佷笟棰勮
+ * 浼佷笟搴旀��
*/
-import { LayerHbss } from './LayerHbss'
-import { LayerFsss } from './LayerFsss'
+// import { LayerHbss } from './LayerHbss'
+// import { LayerFsss } from './LayerFsss'
-import { PIPELINE_WFS } from '../Constants'
-const WFS_URL = PIPELINE_WFS
+import { LayerEvent } from './LayerEvent'
+import { LayerResources } from './LayerResources'
+
+import { SERVICE_TYPE } from '../Constants'
export const LayerEntEmer = {
- code: 'reportEntemeage',
- name: '浼佷笟棰勮',
+ code: 'EnterpriseEmergency',
+ name: '浼佷笟搴旀��',
checked: false,
type: 0,
- childLayer: [LayerFsss, LayerHbss],
+ // childLayer: [LayerEvent, LayerResources],
layers: [
{
code: 'rainline',
- name: '浜嬪墠闃舵',
- sname: '鍏ㄩ儴璧勬簮',
+ 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>',
+ type: SERVICE_TYPE.WMS,
+ layerGroup: 'sewer:pipeline_group',
+ typeName: 'sewer:pipeline',
icon: 'sewers/闆ㄦ按绾�.png',
color: '#0070ff',
minZoom: 13,
styles: {
COLOR: '#0070ff',
FILL_COLOR: '#0070ff'
- }
+ },
+ filter: 'mediumtype = \'鍩虹鍥惧眰\'',
+ index: 1
},
{
code: 'accidentline',
- name: '搴旀�ョ墿璧勫湪',
- sname: '浜嬫晠姘�',
+ name: '鍦ㄧ嚎鐩戞祴',
+ sname: '鍦ㄧ嚎鐩戞祴',
checked: false,
- // wmsLayers: 'sewer:pipeline_accident',
- type: 0,
+ type: SERVICE_TYPE.WMS,
+ layerGroup: 'sewer:pipeline_group',
+ typeName: 'sewer:pipeline',
minZoom: 13,
- wfs: WFS_URL + '?TYPENAME=浜嬫晠姘�'
+ filter: 'mediumtype = \'鍦ㄧ嚎鐩戞祴\'',
+ index: 1
},
{
code: 'oilline',
- name: '搴旀�ヨ溅杈�',
- sname: '鍚补姹℃按',
+ name: '搴旀�ヨ祫婧�',
+ sname: '搴旀�ヨ祫婧�',
checked: false,
- type: 0,
+ type: SERVICE_TYPE.WMS,
+ layerGroup: 'sewer:pipeline_group',
+ typeName: 'sewer:pipeline',
minZoom: 13,
color: '#ffaa00',
- wmsLayers: 'sewer:pipeline_sewer',
- // wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipeline&maxFeatures=500&outputFormat=application%2Fjson&cql_filter=mediumtype=\'鍚补姹℃按\'',
+ filter: 'mediumtype = \'搴旀�ヨ祫婧怽'',
styles: {
COLOR: '#ffaa00',
FILL_COLOR: '#ffaa00'
- }
+ },
+ index: 1
},
{
code: 'saltline',
- name: '搴旀�ラ槦浼�',
- sname: '鍚洂姹℃按',
+ name: '鍛ㄨ竟鐜',
+ sname: '鍛ㄨ竟鐜',
checked: false,
- type: 0,
+ type: SERVICE_TYPE.WMS,
+ layerGroup: 'sewer:pipeline_group',
+ typeName: 'sewer:pipeline',
minZoom: 13,
- wfs: WFS_URL + '?TYPENAME=鍚洂姹℃按'
+ filter: 'mediumtype = \'鍛ㄨ竟鐜\'',
+ index: 1
+ },
+ {
+ code: 'alkaliline',
+ name: '姹℃按绠$嚎',
+ sname: '姹℃按绠$嚎',
+ checked: false,
+ type: SERVICE_TYPE.WMS,
+ layerGroup: 'sewer:pipeline_group',
+ typeName: 'sewer:pipeline',
+ filter: 'mediumtype = \'姹℃按绠$嚎\'',
+ minZoom: 10,
+ index: 1
}
]
}
--
Gitblit v1.8.0