From 4df0471b7dff0494625ff09969b1a13b5359a26e Mon Sep 17 00:00:00 2001 From: XingChuan <m17600301067@163.com> Date: 星期一, 31 五月 2021 22:41:47 +0800 Subject: [PATCH] 统计表弹框UI优化;增加点击企业名称缩放至企业;二级表展示功能优化。 --- src/conf/layers/LayerFsss.js | 39 +++++++++++++++++++++++++++------------ 1 files changed, 27 insertions(+), 12 deletions(-) diff --git a/src/conf/layers/LayerFsss.js b/src/conf/layers/LayerFsss.js index 86cc169..d46732e 100644 --- a/src/conf/layers/LayerFsss.js +++ b/src/conf/layers/LayerFsss.js @@ -1,28 +1,29 @@ /** * 鍖哄煙 */ -import { PIPELINE_WFS } from '../Constants' -const WFS_URL = 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: 16, - wmsLayers: 'sewer:fourlink', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:fourlink', // wfs: WFS_URL + '?TYPENAME=鍥涢��', icon: 'sewers/鍥涢��.png' }, @@ -32,30 +33,42 @@ sname: '涓夐��', checked: false, minZoom: 16, - wmsLayers: 'sewer:tee', + typeName: 'sewer:tee', + type: SERVICE_TYPE.WMS, // wfs: WFS_URL + '?TYPENAME=涓夐��', icon: 'sewers/涓夐��.png' }, { code: 'piperack', name: '绠℃灦(澧�)', - sname: 'PipeRack', + sname: '绠℃灦(澧�)', minZoom: 16, - wfs: WFS_URL + '?TYPENAME=绠℃灦', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:piperack', + icon: 'sewers/绠℃灦(澧�).png', checked: false }, { code: 'pipegallery', name: '绠″粖(甯�)', - sname: 'PipeGallery', + sname: '绠″粖(甯�)', minZoom: 16, - wfs: WFS_URL + '?TYPENAME=绠″粖', + 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', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:pipesegment_flow', checked: false }, { @@ -64,7 +77,8 @@ minZoom: 10, sname: '闃�闂�', checked: false, - wmsLayers: 'sewer:valve', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:valve', // wfs: WFS_URL + '?TYPENAME=闃�闂�', icon: 'sewers/闃�闂�.png' }, @@ -74,7 +88,8 @@ sname: '寮ご', minZoom: 16, checked: false, - wmsLayers: 'sewer:elbow', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:elbow', // wfs: WFS_URL + '?TYPENAME=寮ご', icon: 'sewers/寮ご.png' } -- Gitblit v1.8.0