From dd1f49d08fd83a900c08eb87c78a6d56b3ee3a50 Mon Sep 17 00:00:00 2001
From: chenyabin <Chenab123!>
Date: 星期二, 11 五月 2021 10:36:23 +0800
Subject: [PATCH] 图层控制联动效果。
---
src/conf/layers/LayerFsss.js | 38 ++++++++++++++++++++++++++------------
1 files changed, 26 insertions(+), 12 deletions(-)
diff --git a/src/conf/layers/LayerFsss.js b/src/conf/layers/LayerFsss.js
index 0e5db5b..6cc183a 100644
--- a/src/conf/layers/LayerFsss.js
+++ b/src/conf/layers/LayerFsss.js
@@ -1,28 +1,32 @@
/**
* 鍖哄煙
*/
-import { PIPELINE_WFS } from '../Constants'
+import { PIPELINE_WFS, SERVICE_TYPE } from '../Constants'
const WFS_URL = PIPELINE_WFS
export const LayerFsss = {
code: 'sewersFsss',
name: '闄勫睘璁炬柦',
checked: false, // 榛樿閫変腑鐘舵��
layers: [
- {
+ /* {
code: 'pipeSection',
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',
name: '鍥涢��',
sname: '鍥涢��',
checked: true,
minZoom: 16,
- wfs: WFS_URL + '?TYPENAME=鍥涢��',
- icon: 'sewers/鍥涢��.png'
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:fourlink',
+ // wfs: WFS_URL + '?TYPENAME=鍥涢��',
+ icon: 'sewers/鍥涢��.png',
+ index: 3
},
{
code: 'tee',
@@ -30,15 +34,19 @@
sname: '涓夐��',
checked: false,
minZoom: 16,
- wfs: WFS_URL + '?TYPENAME=涓夐��',
- icon: 'sewers/涓夐��.png'
+ typeName: 'sewer:tee',
+ type: SERVICE_TYPE.WMS,
+ // wfs: WFS_URL + '?TYPENAME=涓夐��',
+ icon: 'sewers/涓夐��.png',
+ index: 3
},
{
code: 'piperack',
name: '绠℃灦(澧�)',
sname: 'PipeRack',
minZoom: 16,
- wfs: WFS_URL + '?TYPENAME=绠℃灦',
+ type: SERVICE_TYPE.WMS,
+ typeName: WFS_URL + '?TYPENAME=绠℃灦',
checked: false
},
{
@@ -46,13 +54,15 @@
name: '绠″粖(甯�)',
sname: 'PipeGallery',
minZoom: 16,
- wfs: WFS_URL + '?TYPENAME=绠″粖',
+ type: SERVICE_TYPE.WMS,
+ typeName: '?TYPENAME=绠″粖',
checked: false
},
{
code: 'pipesegment',
name: '娴佸悜',
sname: 'ywslx',
+ type: SERVICE_TYPE.WMS,
checked: false
},
{
@@ -61,7 +71,9 @@
minZoom: 10,
sname: '闃�闂�',
checked: false,
- wfs: WFS_URL + '?TYPENAME=闃�闂�',
+ type: SERVICE_TYPE.WMS,
+ typeName: 'sewer:valve',
+ // wfs: WFS_URL + '?TYPENAME=闃�闂�',
icon: 'sewers/闃�闂�.png'
},
{
@@ -70,7 +82,9 @@
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