From 8fce60dd7fe71c2f1e7a0d59512bec38d09851ee Mon Sep 17 00:00:00 2001 From: QibolinCzp <qibolin02429@126.com> Date: 星期五, 14 五月 2021 15:18:11 +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