From ba6cbe6fdba28c9469b6306e744a2335a5c796e2 Mon Sep 17 00:00:00 2001 From: tangwenkang <2720983602@qq.com> Date: Wed, 6 Dec 2023 16:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=9B=B4=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/record.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index 6182e5a..f434aa5 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -67,7 +67,7 @@ export default { parseFloat(obj.latitude.replace(/"/g, "")) ]); this.lineArr = coordinates - console.log("历史轨迹经纬:"+this.lineArr) + console.log(this.lineArr) }) }, initMap() { @@ -93,7 +93,7 @@ export default { dragEnable: true, // 地图是否可通过鼠标拖拽平移,默认为true doubleClickZoom: true, // 地图是否可通过双击鼠标放大地图,默认为true zoom: 13, //初始化地图级别 - center: this.lineArr[0], // 初始化中心点坐标 北京 + center: this.lineArr[0], // 初始化中心点坐标 // mapStyle: "amap://styles/darkblue", // 设置颜色底层 }) @@ -133,8 +133,8 @@ export default { }) }, startAnimation () { - setTimeout(()=>{ - AMap.plugin('AMap.MoveAnimation', () => { + // setTimeout(()=>{ + // AMap.plugin('AMap.MoveAnimation', () => { console.log('开始回放') this.marker.moveAlong(this.lineArr, { // 每一段的时长 @@ -142,8 +142,8 @@ export default { // JSAPI2.0 是否延道路自动设置角度在 moveAlong 里设置 autoRotation: true, }); - }) - },2000) + // }) + // },2000) }, }, }