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