|
@@ -255,35 +255,36 @@ function getAutoPath() {
|
|
|
if (res.data.code == "200") {
|
|
|
let data = res.data.data;
|
|
|
allPathArr = [];
|
|
|
- if(data.pathList_cj_originalPath.length > 0){
|
|
|
+ debugger
|
|
|
+ if(data.shortestPath.path.length > 0){
|
|
|
allPathArr.push({
|
|
|
"name": "贴合原路径",
|
|
|
"type": "polyline",
|
|
|
"shape":{
|
|
|
"radius": 10,
|
|
|
- "paths": data.pathList_cj_originalPath,
|
|
|
+ "paths": data.shortestPath.path,
|
|
|
"color": [0,255,255,0.7]
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- if(data.pathList_cj_safePath.length > 0){
|
|
|
+ if(data.safePath.path.length > 0){
|
|
|
allPathArr.push({
|
|
|
"name": "安全路径",
|
|
|
"type": "polyline",
|
|
|
"shape":{
|
|
|
"radius": 10,
|
|
|
- "paths": data.pathList_cj_safePath,
|
|
|
+ "paths": data.safePath.path,
|
|
|
"color": [255,0,255,0.7]
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- if(data.pathList_cj_shortestPath.length > 0){
|
|
|
+ if(data.originalPath.path.length > 0){
|
|
|
allPathArr.push({
|
|
|
- "name": "最短路径",
|
|
|
+ "name": "贴合路径",
|
|
|
"type": "polyline",
|
|
|
"shape":{
|
|
|
"radius": 10,
|
|
|
- "paths": data.pathList_cj_shortestPath,
|
|
|
+ "paths": data.originalPath.path,
|
|
|
"color": [255,255,0,0.7]
|
|
|
}
|
|
|
})
|