From fb36301ca4335e9f511a877569204153e9d461fe Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期五, 14 五月 2021 14:39:34 +0800
Subject: [PATCH] 修改图层控制BUG

---
 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