fix(javaTest): correct route comparison and layer visibility
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user