From 0df1b9e7efbf4204c0d87d3018c41b6214f53489 Mon Sep 17 00:00:00 2001 From: chenyabin <Chenab123!> Date: 星期五, 14 五月 2021 11:16:43 +0800 Subject: [PATCH] 图例部分图标替换 --- src/conf/layers/LayerPk.js | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/conf/layers/LayerPk.js b/src/conf/layers/LayerPk.js index 1975cf8..b1b95be 100644 --- a/src/conf/layers/LayerPk.js +++ b/src/conf/layers/LayerPk.js @@ -1,27 +1,33 @@ +import { SERVICE_TYPE } from '../Constants' + /** * 鎺掑彛 */ -import MapConfig from '../../conf/MapConfig' -const WFS_URL = MapConfig.PIPELINE_WFS export const LayerPk = { - code: 'sewersPk', - name: '鎺掑彛', + code: 'sewersDischargeport', + name: '鎺掓斁鍙�', + icon: 'sewers/闆ㄦ按鎺掑彛.png', checked: true, + type: 0, layers: [ { code: 'sewersNpk', name: '鍐呮帓鍙�', sname: '鍐呮帓鍙�', checked: true, - wfs: WFS_URL + '?TYPENAME=鍐呮帓鍙�', + type: SERVICE_TYPE.WMS, + icon: 'sewers/闆ㄦ按鎺掑彛.png', + typeName: 'sewer:dischargeport', minZoom: 10 // 鍦ㄦ寚瀹氱骇鍒樉绀� }, { code: 'sewersWpk', name: '澶栨帓鍙�', sname: '澶栨帓鍙�', + icon: 'sewers/闆ㄦ按鎺掑彛.png', checked: true, // 榛樿閫変腑鐘舵�� - wfs: WFS_URL + '?TYPENAME=澶栨帓鍙�', + type: SERVICE_TYPE.WMS, + typeName: 'sewer:dischargeport', minZoom: 10 } ] -- Gitblit v1.8.0