fix(javaTest): correct route comparison and layer visibility

This commit is contained in:
zgw
2026-08-06 19:35:30 +08:00
parent 651402a06f
commit e76006ec04
4 changed files with 27 additions and 1 deletions

View File

@@ -40,6 +40,12 @@ final class HistoricalRouteQualityMapper {
}
double historicalDistance = distanceCalculator.pathDistance(map, historicalPath);
if (plannedPath.isEmpty()) {
// 失败或仍等待的任务没有新路线,不能把“无结果”伪装成算法质量退化。
return new HistoricalRouteComparison(
HistoricalRouteComparison.Comparability.COMPARABLE,
null, historicalDistance, null);
}
if (!isValidPath(map, plannedPath)) {
return new HistoricalRouteComparison(
HistoricalRouteComparison.Comparability.COMPARABLE,

View File

@@ -548,7 +548,9 @@
}
hideMapHint();
drawPath(layer, approach, "approach", project);
if (elements["show-current-route"].checked) {
drawPath(layer, approach, "approach", project);
}
if (elements["show-initial-route"].checked) {
drawPath(layer, initialService, "initial-service", project);
}