From db929db466201b100a5af70add4a8f6b46bb8b5d Mon Sep 17 00:00:00 2001
From: 陈泽平 <qibolin02429@126.com>
Date: 星期一, 17 五月 2021 10:30:50 +0800
Subject: [PATCH] 企业图层展示控制

---
 src/components/LayerController/logic/WasteGas.js |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/components/LayerController/logic/WasteGas.js b/src/components/LayerController/logic/WasteGas.js
index 7d57975..17706bc 100644
--- a/src/components/LayerController/logic/WasteGas.js
+++ b/src/components/LayerController/logic/WasteGas.js
@@ -72,9 +72,9 @@
           storagePlaceId: res
         }
       },
-      title: title // 鏍囬
+      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