完毕3
parent
9564c006de
commit
209d27973b
|
@ -105,23 +105,23 @@ export default {
|
||||||
});
|
});
|
||||||
this.map.add(this.marker)
|
this.map.add(this.marker)
|
||||||
|
|
||||||
// 绘制轨迹
|
// // 绘制轨迹
|
||||||
this.polyline = new AMap.Polyline({
|
// this.polyline = new AMap.Polyline({
|
||||||
path: this.lineArr,
|
// path: this.lineArr,
|
||||||
showDir: true,
|
// showDir: true,
|
||||||
strokeColor: "#28F", //线颜色
|
// strokeColor: "#28F", //线颜色
|
||||||
// strokeOpacity: 1, //线透明度
|
// // strokeOpacity: 1, //线透明度
|
||||||
strokeWeight: 6, //线宽
|
// strokeWeight: 6, //线宽
|
||||||
// strokeStyle: "solid" //线样式
|
// // strokeStyle: "solid" //线样式
|
||||||
});
|
// });
|
||||||
this.map.add(this.polyline)
|
// this.map.add(this.polyline)
|
||||||
|
//
|
||||||
// 走过的路径
|
// // 走过的路径
|
||||||
this.passedPolyline = new AMap.Polyline({
|
// this.passedPolyline = new AMap.Polyline({
|
||||||
strokeColor: "#AF5", //线颜色
|
// strokeColor: "#AF5", //线颜色
|
||||||
strokeWeight: 6, //线宽
|
// strokeWeight: 6, //线宽
|
||||||
});
|
// });
|
||||||
this.map.add(this.passedPolyline)
|
// this.map.add(this.passedPolyline)
|
||||||
|
|
||||||
// 监听marker移动
|
// 监听marker移动
|
||||||
this.marker.on('moving', (e) => {
|
this.marker.on('moving', (e) => {
|
||||||
|
|
Loading…
Reference in New Issue