Browse Source

巡更路线

Hwt 2 years ago
parent
commit
cede37f6a3

+ 5 - 2
operationSupport/src/views/patrolManagement/popups/pathSimplifierIns.js

@@ -1,4 +1,4 @@
-//测试跟着图片走动
+//跟着人走
 export default {
     data() {
         return {
@@ -13,6 +13,7 @@ export default {
             times: 1, // 倍速
             maxSpeed: 10, // 最高倍速
             navgtrSpeed: 50, // 速度
+            // navgtrSpeed: 5000, // 速度
             isMinSpeed: true,
             isMaxSpeed: false,
             navgtr: null,
@@ -99,6 +100,7 @@ export default {
 
                 // 初始化坐标点
                 if (that.lineArr.length > 0) {
+                    debugger;
                     that.actualList = that.lineArr;
 
                     //创建一个巡航轨迹路线
@@ -210,6 +212,7 @@ export default {
                 this.palyStayus = 2;
                 // 如果已经到了终点,重新定位坐标
                 if (this.isCursorAtPathEnd && this.actualList.length > 0) {
+                    debugger;
                     this.map.setCenter(this.actualList[0]);
                 }
             } else if (type === 'pause') {
@@ -217,7 +220,7 @@ export default {
                 this.palyStayus = 1;
             }
             this.navgtr[type]();
-            this.map.setFitView();
+            // this.map.setFitView();
         }
         // carReLocate() {
         //     // 鼠标从滑动条抬起时,重新定位