From cf5ab6da9ff676fab8a10d4299bd5a04a07bf50f Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期一, 17 五月 2021 10:05:53 +0800 Subject: [PATCH] 修复默认选中图层时出现的BUG --- src/conf/layers/LayerArea.js | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/conf/layers/LayerArea.js b/src/conf/layers/LayerArea.js index b16cf81..5a2106c 100644 --- a/src/conf/layers/LayerArea.js +++ b/src/conf/layers/LayerArea.js @@ -1,8 +1,6 @@ /** * 鍖哄煙 */ -import { PIPELINE_WFS } from '../Constants' -const WFS_URL = PIPELINE_WFS export const LayerArea = { code: 'sewersArea', name: '鍖哄煙淇℃伅', @@ -15,7 +13,7 @@ sname: '鍏徃', // 琛ㄥ悕 checked: true, // 榛樿閫変腑鐘舵�� type: 0, - url: WFS_URL + '?TYPENAME=鍏徃' + legendImage: '../.././assets/images/map/company_refining.png' }, { code: 'sewersAreaMt', @@ -23,15 +21,14 @@ sname: '鐮佸ご', checked: false, // 榛樿閫変腑鐘舵�� type: 0, - wfs: WFS_URL + '?TYPENAME=鐮佸ご' + legendImage: '../.././assets/images/map/sewers/鐮佸ご.png' }, { code: 'sewersAreaZz', name: '瑁呯疆鍖�', sname: '瑁呯疆鍖�', checked: false, // 榛樿閫変腑鐘舵�� - type: 0, - wfs: WFS_URL + '?TYPENAME=瑁呯疆鍖�' + typeName: 'sewer:unitareaboundary' } ] } -- Gitblit v1.8.0