|
|
|
@ -208,6 +208,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
setPolyline1(e) {
|
|
|
|
|
polyline1 && map.remove(polyline1);
|
|
|
|
|
console.log(polyline1);
|
|
|
|
|
polyline1 = new AMap.Polyline({
|
|
|
|
|
path: e,
|
|
|
|
|
strokeColor:'#000',
|
|
|
|
@ -250,8 +251,9 @@ export default {
|
|
|
|
|
return null
|
|
|
|
|
}
|
|
|
|
|
}).filter(res => res)
|
|
|
|
|
console.log(markersData);
|
|
|
|
|
this.setPolyline1(markersData.map(v => {
|
|
|
|
|
return v._position
|
|
|
|
|
return v?._position ? v._position : []
|
|
|
|
|
}))
|
|
|
|
|
} else if (endMarker && startMarker) {
|
|
|
|
|
startMarkerhs = e.target.hS
|
|
|
|
|