fix
This commit is contained in:
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user