Commit f423bf1d authored by 纪泽龙's avatar 纪泽龙

历史轨迹优化

parent 5ba1f93c
/*
* @Author: your name
* @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
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
......@@ -819,6 +819,7 @@ export class EditorMap {
hfLine = null;
hfLine2 = null;
huifang(path) {
if(path.length<1) return;
AMap.plugin("AMap.MoveAnimation", () => {
var marker,
lineArr = path;
......@@ -868,6 +869,7 @@ export class EditorMap {
}
clearhf() {
if (this.hfMarker || this.hfLine || this.hfLine2) {
this.hfMarker.stopMove();
this.map.remove(this.hfMarker);
this.map.remove(this.hfLine);
this.map.remove(this.hfLine2);
......
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