路径规划

This commit is contained in:
2025-11-18 16:44:01 +08:00
parent 7243a2682f
commit 481a9e037b
2 changed files with 2 additions and 3 deletions

View File

@ -202,7 +202,7 @@ const routeImport = () => {
filters: [ filters: [
{ {
name: '路网', //、底图 name: '路网', //、底图
extensions: ['PBFL'] extensions: ['pbf']
} }
] ]
} }

View File

@ -195,7 +195,6 @@ const open = () => {
// routePlanning.createRoute(response.list[0].positions) // routePlanning.createRoute(response.list[0].positions)
// } // }
// }) // })
console.log('rsrsrsrrsrs')
try { try {
let res = await RouteApi.queryRoute({ let res = await RouteApi.queryRoute({
startLng: startLng.value, startLng: startLng.value,
@ -205,7 +204,7 @@ const open = () => {
waypoints: [] waypoints: []
}) })
if (res.code === 200) { if (res.code === 200) {
routePlanning.createRoute(res.data.pathPoints) routePlanning.createRoute(res.data.routes[0]?.points)
} }
} catch (error) { } catch (error) {
document.getElementById('clearRoute').click() document.getElementById('clearRoute').click()