master
tangwenkang 2023-12-06 10:24:29 +08:00
parent 2544a33651
commit 2dc2a21795
1 changed files with 17 additions and 17 deletions

View File

@ -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) => {