Complete map display page

This commit is contained in:
2026-02-05 20:00:28 +00:00
parent 2fa8a7872e
commit 221159433c
11 changed files with 338 additions and 37 deletions

View File

@@ -19,7 +19,7 @@
pipeline: { color: '#334155', stroke: '#1e293b', width: 4, text: '#334155'},
}
$: s = bridgeStyles[feature.category] || styles.minorRoad;
$: s = bridgeStyles[feature.category] || bridgeStyles.minorRoad;
$: isOver = feature.position === 'over';
$: topY = 32 - (s.width / 2);
@@ -36,9 +36,9 @@
<path d={bodyPath} fill={s.color} />
<path d={`M 0 ${topY} L 64 ${topY}`} stroke={s.stroke} stroke-width="2" />
<path d={`M 0 ${bottomY} L 64 ${bottomY}`} stroke={s.stroke} stroke-width="2" />
<BaseTrack elec={activeElec} height={64} />
<BaseTrack {activeElec} height={64} />
{:else}
<BaseTrack elec={activeElec} height={64} />
<BaseTrack {activeElec} height={64} />
<path d={bodyPath} fill="white" /> <path d={bodyPath} fill={s.color} />