完毕4
parent
2544a33651
commit
2dc2a21795
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue