From 50b5bca4861dbeb97b6a817f03c24c919ebaab40 Mon Sep 17 00:00:00 2001
From: 陈泽平 <qibolin02429@126.com>
Date: 星期一, 17 五月 2021 13:24:32 +0800
Subject: [PATCH] 企业点展示控制

---
 src/components/panel/topicSearch/GasWasteSearch.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/components/panel/topicSearch/GasWasteSearch.vue b/src/components/panel/topicSearch/GasWasteSearch.vue
index ad63218..42df935 100644
--- a/src/components/panel/topicSearch/GasWasteSearch.vue
+++ b/src/components/panel/topicSearch/GasWasteSearch.vue
@@ -99,6 +99,7 @@
 <script>
 import mapApi from '@/api/mapApi'
 import WasteWaterIndex from '../../BaseNav/WasteWater/WasteWaterIndex'
+import { pulseEffect, setPanTo } from '../../../utils/utils'
 
 export default {
   name: 'GasWasteSearch',
@@ -165,7 +166,7 @@
     async handleLocation (val) {
       console.log(val)
       const pos = [val.Latitude, val.Longitude]
-      window.map.flyTo(pos, 15)
+      window.map.setView(pos, 15)
       window.$layer.open({
         content: {
           content: WasteWaterIndex, // 缁勪欢
@@ -176,6 +177,8 @@
         },
         title: '澶╂触鐭冲寲  ' + val.Name
       })
+      pulseEffect([val.Latitude, val.Longitude])
+      setPanTo(pos, 250)
     }
   }
 }

--
Gitblit v1.8.0