This commit is contained in:
gcw_IJ7DAiVL
2025-09-10 09:34:52 +08:00
parent 935846d7f2
commit 3e7ccea682
3 changed files with 22 additions and 34 deletions

View File

@ -181,9 +181,9 @@ export default {
tableData: [],
multipleSelection: [],
inputform: {
width: '',
load: '',
minTurnRadius: '',
width: 0,
load: 0,
minTurnRadius: 0,
},
form: {
startPoint: '',
@ -962,10 +962,13 @@ export default {
const nextNode = pathNodes[j + 1]
const segment = this.roadNetworkGeoJSON.features.find(
(f) =>
(f.properties.FNODE_ == currentNode &&
((f.properties.FNODE_ == currentNode &&
f.properties.TNODE_ == nextNode) ||
(f.properties.FNODE_ == nextNode &&
f.properties.TNODE_ == currentNode)
f.properties.TNODE_ == currentNode) )&&
f.properties.载重吨 >= this.inputform.load &&
f.properties.宽度 >= this.inputform.width &&
f.properties.曲率半 <= this.inputform.minTurnRadius
)
if (segment) {
fullPath.push(...segment.geometry.coordinates[0])
@ -1023,6 +1026,7 @@ export default {
// 单独的路径绘制方法
drawPath(path) {
const positions = path
if (positions.fullPath.length == 0) return
const polyline = new window.mars3d.graphic.PolylinePrimitive({
positions: positions.fullPath,
style: {