From de32f49313e2c7534009758193c41be61517f1d5 Mon Sep 17 00:00:00 2001
From: chenyabin <Chenab123!>
Date: 星期五, 14 五月 2021 15:27:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/develop' into develop

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