路径规划
This commit is contained in:
@ -202,7 +202,7 @@ const routeImport = () => {
|
||||
filters: [
|
||||
{
|
||||
name: '路网', //、底图
|
||||
extensions: ['PBFL']
|
||||
extensions: ['pbf']
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user