diff --git a/src/views/vehicle/record.vue b/src/views/vehicle/record.vue index 171a99f..36dc017 100644 --- a/src/views/vehicle/record.vue +++ b/src/views/vehicle/record.vue @@ -105,23 +105,23 @@ export default { }); this.map.add(this.marker) - // 绘制轨迹 - this.polyline = new AMap.Polyline({ - path: this.lineArr, - showDir: true, - strokeColor: "#28F", //线颜色 - // strokeOpacity: 1, //线透明度 - strokeWeight: 6, //线宽 - // strokeStyle: "solid" //线样式 - }); - this.map.add(this.polyline) - - // 走过的路径 - this.passedPolyline = new AMap.Polyline({ - strokeColor: "#AF5", //线颜色 - strokeWeight: 6, //线宽 - }); - this.map.add(this.passedPolyline) + // // 绘制轨迹 + // this.polyline = new AMap.Polyline({ + // path: this.lineArr, + // showDir: true, + // strokeColor: "#28F", //线颜色 + // // strokeOpacity: 1, //线透明度 + // strokeWeight: 6, //线宽 + // // strokeStyle: "solid" //线样式 + // }); + // this.map.add(this.polyline) + // + // // 走过的路径 + // this.passedPolyline = new AMap.Polyline({ + // strokeColor: "#AF5", //线颜色 + // strokeWeight: 6, //线宽 + // }); + // this.map.add(this.passedPolyline) // 监听marker移动 this.marker.on('moving', (e) => {