From 4d265afb3419bd5cedc6f31ab78d570f6917b520 Mon Sep 17 00:00:00 2001
From: seatonwan9 <seatonwan9@163.com>
Date: 星期五, 21 五月 2021 14:30:44 +0800
Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop
---
src/conf/layers/LayerFsss.js | 76 ++++++++++++++++++++++++--------------
1 files changed, 48 insertions(+), 28 deletions(-)
diff --git a/src/conf/layers/LayerFsss.js b/src/conf/layers/LayerFsss.js
index ce4269c..caaea37 100644
--- a/src/conf/layers/LayerFsss.js
+++ b/src/conf/layers/LayerFsss.js
@@ -1,78 +1,98 @@
/**
* 鍖哄煙
*/
-const APP_GIS_HOST_2 = 'http://xearth.cn:8088'
-const WFS_URL = APP_GIS_HOST_2 + '/server/ogcserver/PipeLine/wfs'
+import { SERVICE_TYPE } from '../Constants'
+
export const LayerFsss = {
code: 'sewersFsss',
name: '闄勫睘璁炬柦',
checked: false, // 榛樿閫変腑鐘舵��
layers: [
+ /* {
+ code: 'pipeSection',
+ name: '绠℃',
+ sname: '绠℃',
+ checked: false,
+ wmsLayers: 'sewer:pipesegment'
+ // wfs: 'http://xearth.cn:6240/geoserver/sewer/wfs?typeName=sewer:pipesegment&maxFeatures=50&outputFormat=application%2Fjson&cql_filter=orgname=\'宸撮櫟鐭冲寲\''
+ }, */
{
code: 'fourlink',
name: '鍥涢��',
sname: '鍥涢��',
checked: true,
- minZoom: 10,
- wfs: WFS_URL + '?TYPENAME=鍥涢��',
- icon: 'sewers/鍥涢��.png'
+ minZoom: 16,
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:fourlink',
+ // wfs: WFS_URL + '?TYPENAME=鍥涢��',
+ icon: 'sewers/鍥涢��.png',
+ index: 3
},
{
code: 'tee',
name: '涓夐��',
sname: '涓夐��',
checked: false,
- minZoom: 10,
- wfs: WFS_URL + '?TYPENAME=涓夐��',
- icon: 'sewers/涓夐��.png'
+ minZoom: 16,
+ typeName: 'sewer:tee',
+ type: SERVICE_TYPE.WMS,
+ // wfs: WFS_URL + '?TYPENAME=涓夐��',
+ icon: 'sewers/涓夐��.png',
+ index: 3
},
{
code: 'piperack',
name: '绠℃灦(澧�)',
- sname: 'PipeRack',
- minZoom: 10,
- wfs: WFS_URL + '?TYPENAME=绠℃灦',
+ sname: '绠℃灦(澧�)',
+ minZoom: 16,
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:piperack',
+ icon: 'sewers/绠℃灦(澧�).png',
checked: false
},
{
code: 'pipegallery',
name: '绠″粖(甯�)',
- sname: 'PipeGallery',
- minZoom: 10,
- wfs: WFS_URL + '?TYPENAME=绠″粖',
+ sname: '绠″粖(甯�)',
+ minZoom: 16,
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:pipegallery',
+ icon: 'sewers/绠″粖.png',
+ color: '#828282',
+ styles: {
+ COLOR: '#828282',
+ FILL_COLOR: '#828282'
+ },
checked: false
},
{
code: 'pipesegment',
name: '娴佸悜',
sname: 'ywslx',
- wfs: WFS_URL + '?TYPENAME=娴佸悜',
- checked: false
- },
- {
- code: 'pipeline',
- name: '绠$綉',
- minZoom: 10,
- sname: 'pipeline',
- wfs: WFS_URL + '?TYPENAME=绠$綉',
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:pipesegment_flow',
checked: false
},
{
code: 'valve',
name: '闃�闂�',
minZoom: 10,
- sname: 'valve',
+ sname: '闃�闂�',
checked: false,
- wfs: WFS_URL + '?TYPENAME=闃�闂�',
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:valve',
+ // wfs: WFS_URL + '?TYPENAME=闃�闂�',
icon: 'sewers/闃�闂�.png'
},
{
code: 'elbow',
name: '寮ご',
- sname: 'Elbow',
- minZoom: 10,
+ sname: '寮ご',
+ minZoom: 16,
checked: false,
- wfs: WFS_URL + '?TYPENAME=寮ご',
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:elbow',
+ // wfs: WFS_URL + '?TYPENAME=寮ご',
icon: 'sewers/寮ご.png'
}
]
--
Gitblit v1.8.0