From a0792f6d3b636590feed7b1cac99c06a02ecf37a Mon Sep 17 00:00:00 2001 From: ChenZeping02609 <chenzeping02609@163.com> Date: 星期四, 13 五月 2021 18:39:05 +0800 Subject: [PATCH] 企业应急 资源查询修改 --- src/components/LayerController/logic/WasteGas.js | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/src/components/LayerController/logic/WasteGas.js b/src/components/LayerController/logic/WasteGas.js index 7d57975..2fe606c 100644 --- a/src/components/LayerController/logic/WasteGas.js +++ b/src/components/LayerController/logic/WasteGas.js @@ -74,7 +74,7 @@ }, title: title // 鏍囬 }) - this.setPanTo(e.latlng, 150) + this.animalService.setPanTo(e.latlng, 150) } // 涓嶅悓绫诲瀷鍥剧墖鍔犺浇 this.differentTypes = (ContrLevel) => { @@ -91,12 +91,5 @@ // effectOfChange = ImgGray // } return effectOfChange - } - this.setPanTo = (pos, value) => { - var position = pos - position = window.map.latLngToLayerPoint(position) - position.y += value - position = window.map.layerPointToLatLng(position) - window.map.flyTo(position) } } -- Gitblit v1.8.0