调整折返策略状态显示

This commit is contained in:
zyy 2020-08-24 17:21:12 +08:00
parent 18235dc096
commit 23b024dff4

View File

@ -114,11 +114,13 @@ export default class StationTurnBack extends Group {
if (!path.includes('/map/draw')) { if (!path.includes('/map/draw')) {
this.strategyText && this.strategyText.hide(); this.strategyText && this.strategyText.hide();
} }
this.control && this.control.highlightType1(this.style.ReturnModeGroup.highlightColor); if (this.style.ReturnModeGroup) {
this.control && this.control.highlightType1(this.style.ReturnModeGroup.highlightColor);
// this.control && this.control.highlightType1(this.style.ReturnModeGroup.strokeColor); // this.control && this.control.highlightType1(this.style.ReturnModeGroup.strokeColor);
this.control && this.control.highlightType2(this.style.ReturnModeGroup.strokeColor); this.control && this.control.highlightType2(this.style.ReturnModeGroup.strokeColor);
this.control && this.control.highlightType3(this.style.ReturnModeGroup.strokeColor); this.control && this.control.highlightType3(this.style.ReturnModeGroup.strokeColor);
}
} }
handleStatus(name) { handleStatus(name) {
@ -128,15 +130,17 @@ export default class StationTurnBack extends Group {
text: name text: name
} }
}); });
this.control && this.control.highlightType1(this.style.ReturnModeGroup.strokeColor); if (this.style.ReturnModeGroup) {
this.control && this.control.highlightType2(this.style.ReturnModeGroup.strokeColor); this.control && this.control.highlightType1(this.style.ReturnModeGroup.strokeColor);
this.control && this.control.highlightType3(this.style.ReturnModeGroup.strokeColor); this.control && this.control.highlightType2(this.style.ReturnModeGroup.strokeColor);
if (name == '优先折返') { this.control && this.control.highlightType3(this.style.ReturnModeGroup.strokeColor);
this.control && this.control.highlightType1(this.style.ReturnModeGroup.highlightColor); if (name == '优先折返') {
} else if (name == '直线折返') { this.control && this.control.highlightType1(this.style.ReturnModeGroup.highlightColor);
this.control && this.control.highlightType2(this.style.ReturnModeGroup.highlightColor); } else if (name == '直线折返') {
} else if (name == '侧线折返') { this.control && this.control.highlightType2(this.style.ReturnModeGroup.highlightColor);
this.control && this.control.highlightType3(this.style.ReturnModeGroup.highlightColor); } else if (name == '侧线折返') {
this.control && this.control.highlightType3(this.style.ReturnModeGroup.highlightColor);
}
} }
} }