路径规划

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: [
{
name: '路网', //、底图
extensions: ['PBFL']
extensions: ['pbf']
}
]
}

View File

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