From f418dbba7378dea1974bf8a34d0da68d625f5abb Mon Sep 17 00:00:00 2001 From: chenyabin <Chenab123!> Date: 星期三, 31 三月 2021 16:56:46 +0800 Subject: [PATCH] 添加企业点图层控制修改 --- src/conf/Constants.js | 2 +- src/conf/layers/LayerArea.js | 2 +- src/components/LayerController/logic/Company.js | 12 +++--------- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/LayerController/logic/Company.js b/src/components/LayerController/logic/Company.js index f4ff3f0..7ccce20 100644 --- a/src/components/LayerController/logic/Company.js +++ b/src/components/LayerController/logic/Company.js @@ -22,6 +22,7 @@ console.log(res) const data = res.Result.DataInfo || {} for (let i = 0; i < data.length; i++) { + console.log(data[i]) // 缁忕含搴� 浣嶇疆 const positionX = data[i].Latitude const positionY = data[i].Longitude @@ -44,16 +45,9 @@ return '浼佷笟' } - this.clickListener = (layer) => { - /* this.animalService.pulseEffect(e.latlng) + this.clickListener = (e) => { + this.animalService.pulseEffect(e.latlng) console.log(e) return this.PublicBounced.$el - */ - console.log(layer) } - - // 鍥哄簾鐐瑰嚮杩涜鐨� 鍐呭鐨勮缃� - // SetSolidWasteContent (config, containerPopup) { - // this.SolidWastePopup = containerPopup - // } } diff --git a/src/conf/Constants.js b/src/conf/Constants.js index ef780e6..455d6e2 100644 --- a/src/conf/Constants.js +++ b/src/conf/Constants.js @@ -8,7 +8,7 @@ wasteGasJcd: 'WasteGas.js', wasteWaterJcd: 'WasteWater.js', solidWasteJcd: 'SolidWaste.js', - fsqy: 'Company.js' + sewersAreaGs: 'Company.js' } export const props = { diff --git a/src/conf/layers/LayerArea.js b/src/conf/layers/LayerArea.js index f3b9da5..4365756 100644 --- a/src/conf/layers/LayerArea.js +++ b/src/conf/layers/LayerArea.js @@ -13,7 +13,7 @@ name: '鍏徃', sname: '鍏徃', // 琛ㄥ悕 checked: true, // 榛樿閫変腑鐘舵�� - wfs: WFS_URL + '?TYPENAME=鍏徃', + url: WFS_URL + '?TYPENAME=鍏徃', minZoom: 10, // 鍦ㄦ寚瀹氱骇鍒樉绀� childLayer: 'fsss,hbss' // 鍏宠仈PointLayers }, -- Gitblit v1.8.0