Commit 8adda220 authored by 耿迪迪's avatar 耿迪迪
parents 50110ca2 82a15259
This diff is collapsed.
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-01-11 13:45:12 * @Date: 2022-01-11 13:45:12
* @LastEditTime: 2026-04-16 15:38:02 * @LastEditTime: 2026-07-15 15:55:04
* @LastEditors: 纪泽龙 jizelong@qq.com * @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js * @FilePath: /test/hello-world/src/utils/mapClass.js
...@@ -819,6 +819,7 @@ export class EditorMap { ...@@ -819,6 +819,7 @@ export class EditorMap {
hfLine = null; hfLine = null;
hfLine2 = null; hfLine2 = null;
huifang(path) { huifang(path) {
if(path.length<1) return;
AMap.plugin("AMap.MoveAnimation", () => { AMap.plugin("AMap.MoveAnimation", () => {
var marker, var marker,
lineArr = path; lineArr = path;
...@@ -868,6 +869,7 @@ export class EditorMap { ...@@ -868,6 +869,7 @@ export class EditorMap {
} }
clearhf() { clearhf() {
if (this.hfMarker || this.hfLine || this.hfLine2) { if (this.hfMarker || this.hfLine || this.hfLine2) {
this.hfMarker.stopMove();
this.map.remove(this.hfMarker); this.map.remove(this.hfMarker);
this.map.remove(this.hfLine); this.map.remove(this.hfLine);
this.map.remove(this.hfLine2); this.map.remove(this.hfLine2);
......
This diff is collapsed.
This diff is collapsed.
...@@ -156,6 +156,7 @@ export default { ...@@ -156,6 +156,7 @@ export default {
}, },
/**获取历史轨迹*/ /**获取历史轨迹*/
getTrackHistory(query) { getTrackHistory(query) {
this.historyTrack=null;
historyTrack(query).then((res) => { historyTrack(query).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (res.data.devices) { if (res.data.devices) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment