From 0df1b9e7efbf4204c0d87d3018c41b6214f53489 Mon Sep 17 00:00:00 2001 From: chenyabin <Chenab123!> Date: 星期五, 14 五月 2021 11:16:43 +0800 Subject: [PATCH] 图例部分图标替换 --- src/conf/layers/LayerArea.js | 14 ++++++++++---- 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/conf/layers/LayerArea.js b/src/conf/layers/LayerArea.js index 0ec2ae6..7a33fbd 100644 --- a/src/conf/layers/LayerArea.js +++ b/src/conf/layers/LayerArea.js @@ -1,33 +1,39 @@ /** * 鍖哄煙 */ -import { PIPELINE_WFS } from '../Constants' +import { SERVICE_TYPE, PIPELINE_WFS } from '../Constants' const WFS_URL = PIPELINE_WFS export const LayerArea = { code: 'sewersArea', name: '鍖哄煙淇℃伅', checked: false, + type: 0, layers: [ { code: 'sewersAreaGs', name: '鍏徃', sname: '鍏徃', // 琛ㄥ悕 checked: true, // 榛樿閫変腑鐘舵�� - url: WFS_URL + '?TYPENAME=鍏徃' + type: 0, + url: WFS_URL + '?TYPENAME=鍏徃', + legendImage: '../.././assets/images/map/company_refining.png' }, { code: 'sewersAreaMt', name: '鐮佸ご', sname: '鐮佸ご', checked: false, // 榛樿閫変腑鐘舵�� - wfs: WFS_URL + '?TYPENAME=鐮佸ご' + type: 0, + wfs: WFS_URL + '?TYPENAME=鐮佸ご', + legendImage: '../.././assets/images/map/sewers/鐮佸ご.png' }, { code: 'sewersAreaZz', name: '瑁呯疆鍖�', sname: '瑁呯疆鍖�', checked: false, // 榛樿閫変腑鐘舵�� - wfs: WFS_URL + '?TYPENAME=瑁呯疆鍖�' + type: SERVICE_TYPE.WMS, + typeName: 'sewer:unitareaboundary' } ] } -- Gitblit v1.8.0