|
|
@@ -371,13 +371,18 @@ export default {
|
|
|
|
|
|
// 统计干线协调实际生成的线段数
|
|
|
if (config.name === '干线协调' && overlays.length > 0) {
|
|
|
+ const trunkNames = [
|
|
|
+ '古城南路与古城大街', '古城西路东口南一过街', '古城大街与古城北路',
|
|
|
+ '八角北路与八角东街', '古城西路与古城大街'
|
|
|
+ ];
|
|
|
const polylineCount = overlays.filter(o => o instanceof this.AMap.Polyline).length;
|
|
|
for (let s = 0; s < polylineCount; s++) {
|
|
|
const idx = trunkSegments.length + 1;
|
|
|
+ const name = trunkNames[idx - 1] || ('干线' + idx);
|
|
|
trunkSegments.push({
|
|
|
id: 'trunk_' + idx,
|
|
|
- label: '干线' + idx,
|
|
|
- intersections: Array.from({ length: 6 }, (_, k) => '干线' + idx + '_路口' + (k + 1)),
|
|
|
+ label: name,
|
|
|
+ intersections: Array.from({ length: 6 }, (_, k) => name + '_路口' + (k + 1)),
|
|
|
distances: Array.from({ length: 6 }, (_, k) => k * 1000),
|
|
|
_lineIdx: lineIdx,
|
|
|
_segmentIdx: s
|