|
@@ -347,7 +347,7 @@ export default {
|
|
|
map.setCenter(new AMap.LngLat(res.data.coordPoint.log, res.data.coordPoint.lat))
|
|
|
map.setZoom(13)
|
|
|
map.add(new AMap.Polyline({
|
|
|
- path: res.data.coordPointList.map(item => {
|
|
|
+ path: res.data.guijicoord.map(item => {
|
|
|
return new AMap.LngLat(item.log, item.lat)
|
|
|
}),
|
|
|
strokeWeight: 6,
|
|
@@ -356,14 +356,14 @@ export default {
|
|
|
lineCap: 'round',
|
|
|
showDir: true
|
|
|
}))
|
|
|
- if (res.data.coordPointList.length) {
|
|
|
+ if (res.data.guijicoord.length) {
|
|
|
map.add(new AMap.Marker({
|
|
|
content: '<i class="el-icon-location-information" style="font-size: 32px; color: #67C23A;"></i>',
|
|
|
position: [res.data.coordPointList[0].log, res.data.coordPointList[0].lat],
|
|
|
offset: new AMap.Pixel(-16, -30)
|
|
|
}))
|
|
|
}
|
|
|
- if (res.data.coordPointList.length >= 2) {
|
|
|
+ if (res.data.guijicoord.length >= 2) {
|
|
|
map.add(new AMap.Marker({
|
|
|
content: '<i class="el-icon-location-information" style="font-size: 32px; color: #F56C6C;"></i>',
|
|
|
position: [res.data.coordPointList[res.data.coordPointList.length - 1].log, res.data.coordPointList[res.data.coordPointList.length - 1].lat],
|